You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sbarrack edited this page Nov 20, 2019
·
1 revision
# basic workflow
git clone INSERT_URL
git fetch
git status # view the state of the repo
git pull
git add .# all files
git add FILE_NAME # single files
git mv OLD_FILE NEW_FILE # rename or move a file
git rm FILE_NAME # delete a file
git commit # open text editor to review commit and enter message
git commit -m "message"# commit with message and don't open text editor
git push
# stash
git add .
git stash # places changes as a commit on the stack
git stash list # shows the commits on the stack
git stash pop # applies and removes the top commit on the stack
git stash clear # discards all commits from the stack