Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rb:git-cheatsheet [18/09/2019 12:09]
andrew [git branch (create and delete)]
rb:git-cheatsheet [18/09/2019 15:41] (current)
andrew [git config]
Line 21: Line 21:
   $ git config --global user.email me@mycomp.co.uk   $ git config --global user.email me@mycomp.co.uk
   $ git config --global user.name Real Name   $ git config --global user.name Real Name
 +
 +You can see the current settings in force with:-
 +
 +<​code>​
 +$ git config --list
 +core.excludesfile=~/​.gitignore
 +core.legacyheaders=false
 +...edited...
 +color.ui=auto
 +color.interactive=auto
 +alias.s=status
 +alias.a=!git add . && git status
 +</​code>​
 +
 +Note this also shows aliases which are useful shorthand:-
 +
 +<​code>​
 +$ git s
 +On branch master
 +Your branch is up to date with '​github/​master'​.
 +
 +Untracked files:
 +  (use "git add <​file>​..."​ to include in what will be committed)
 +
 + fullstack-expt/​.terraform/​
 +
 +nothing added to commit but untracked files present (use "git add" to track)
 +</​code>​
  
  

rb/git-cheatsheet.txt ยท Last modified: 18/09/2019 15:41 by andrew