Professional Documents
Culture Documents
git log
git status
git config --list
git add .
git add *.txt
etc.
touch .gitignore
then in .gitignore file:
*.log
*.css
will ignore all log and css files (will NOT track them)
git add .
git commit -m 'notes on commit'
vs
git commit -a -m 'dasdasd' #the extra -a argument does the add stage automatical
ly
from within same folder as existing branch:
git branch "My Branch" #create new branch
#git branch #without anything else shows list of branches and which one you're o
n
git checkout "My Branch" #changes branches so can do stuff
git checkout master #switch back to master branch
git merge 'My Branch' #merges it with master branch (since you are currently in
the master branch)
git stash
#then sqitch branches and do stuff, not committing previous changes, but saving
them so not lost
git stash apply #now apply those changes again