Categories
GIT

Useful GIT Shortcuts

Branch and checkout out a new branch:

git checkout -b my-lovely-new-branch

Adding all files to stage:

git add -A

Check user info:

git config --list

Force a push (maybe after resetting a branch until a previous point in time):

git push origin your-lovely-branch --force

Leave a comment

Design a site like this with WordPress.com
Get started