place to do hands on training for github
git statusto check local statusgit remote updateto bring remote status up to dategit checkoutto switch to branchgit checkout -b xxxxto create & checkout new branch based on current working branch.git add .to add all changes to stagegit commit -m 'xxxxx'commit staged changes to local repo with commentgit push -u origin xxxxxpush local commits to remote origin repogit pull --rebaseto get the latest code with rebase.git rebase --continuewhen has pull.rebase conflict, go resolve the conflict by editing the file, thengit add .and thisgit rebase developto rebase from develop branch to current working branch (feature branch).git log --oneline --graph --color --since=2.weeksprint out git history log with graph within 2 weeksgit stashsave the current none commited changes, so that be able to switch to other branch.git cheery-pick xxxxxx&git cherry-pick --continue -m 'commit message', xxxxxx is 6 digit SHA1 commit hash, if there merge conflict, user the--continueto commit the merge result.
git config --global core.autocrlf truefor windows usersgit config --global core.autocrlf inputfor mac usersgit config --global pull.rebase truealwasy rebase when doing pullgit config --global push.default simplemake sure branch name matchs.
