Please enable JavaScript.
Coggle requires JavaScript to display documents.
Github Commands - Coggle Diagram
Github Commands
SHARE & UPDATE
git fetch [alias] = fetch down all the branches from that Git remote
git merge [alias]/[branch] = merge a remote branch into your current branch to bring it up to date
git remote add [alias] [url] = add a git URL as an alias
git push [alias] [branch] = Transmit local branch commits to the remote repository branch
git pull = fetch and merge any commits from the tracking remote branch
INSPECT & COMPARE
git log =show the commit history for the currently active branch
git log branchB..branchA =show the commits on branchA that are not on branchB
git log --follow [file] = show the commits that changed file, even across renames
git show [SHA] = show any object in Git in human-readable format
BRANCH & MERGE
git checkout= switch to another branch and check it out into your working directory
git branch [branch-name]= create a new branch at the current commit
git merge [branch] =merge the specified branch’s history into the current one
git branch= list your branches. a * will appear next to the currently active branch
SETUP & INIT
git clone [url]= retrieve an entire repository from a hosted location via URL
git init =initialize an existing directory as a Git repository