Skip to content

Instantly share code, notes, and snippets.

@sageworksstudio
Last active April 11, 2018 16:59
Show Gist options
  • Select an option

  • Save sageworksstudio/2eab8b57908c14fd1a42be9ed8986080 to your computer and use it in GitHub Desktop.

Select an option

Save sageworksstudio/2eab8b57908c14fd1a42be9ed8986080 to your computer and use it in GitHub Desktop.
Simple git commands

#Git Help#

##Git Remotes##

VIEW all remotes

git remote -v

ADD remote

git remote add REMOTE-NAME REMOTE-URL

UPDATE or CHANGE remote

git remote set-url REMOTE-NAME REMOTE-URL

REMOVE remote

git remote rm REMOTE-NAME

##Pushing and Pulling##

PUSHING

git push REMOTE-NAME BRANCH-NAME

PULLING

git pull REMOTE-NAME BRANCH-NAME

Delete Local Branch

git branch -d feature/login

Delete Remote Branch

git push origin --delete feature/login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment