Below you will find pages that utilize the taxonomy term “git”

Git Command Reference

This page is a non-exhaustive and growing reference to help me remember git commands. Note: Do not include the < > brackets around the actual branch names, etc., they are used in the examples below to indicate a place holder. Amend # combine any staged changes with the contents of the previous commit git commit --amend # same as above and change the commit message git commit --amend -am "my new commit message" Branch # list local branches git branch # list remote and local branches git branch -a # list remote branches git branch -r # rename current branch git branch -m <newname> # rename a local branch git branch -m <oldname> <newname> # push a new local branch to remote and track git push -u origin <branchname> Clone Cloning is the first step when getting a repository from the server.