Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Files

Latest commit

 

History

History

git

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git

Clone box-setup

Start Menu -> Ubuntu:

  1. cd to desired source code directory (e.g. from Windows Host: %USERPROFILE%\source\repos).
  2. git clone https://github.com/collinbarrett/box-setup.git

Configure

User

Current Repo Only:

Start Menu -> Ubuntu:

  1. cd into box-setup.
  2. git config user.name "Collin M. Barrett"
  3. git config user.email [email protected]

TODO: path-based git user config for work/personal repos: https://stackoverflow.com/a/43884702/2343739

Globally:

Start Menu -> Ubuntu:

  1. git config --global user.name "Collin M. Barrett"
  2. git config --global user.email [email protected]

via git Docs

Credential Helper - Store

Insecure. Once enabled, on first push to any remote, a password is required and then stored permanently in plain text at ~/.git-credentials.

Start Menu -> Ubuntu:

  • git config --global credential.helper store

Cheat Sheet

(depends on aliases in .gitconfig and ohmyzsh git plugin)

  • Refresh all repos in current directory: git all refresh
  • Rebase current feature branch on origin/main: git resync