Alpha
Share and Organize Code
login register
HotNewTop
F.A.Q.
1. To begin adding code first register.
2. Create your own tags for code that you add.
3. To see your own code click Me, to see all code click Everyone, or filter by people rob.
4. To follow a user, click on their username, rob and hit follow.
5. Add other code to your library by clicking the
button near the code titles (note that you can not edit these codes).
6. To create a copy of a code that you can edit use fork.
7. If you can't find your code, double check your filter settings as you can filter by Category, User and Tag simultaneously.
8. Add comments to a code by clicking on it's title or the comments link underneath it.

List and remove a stash (plain)

1
2
git stash list
git stash drop stash@{0}
comments (0) flag fork

Remove working directory changes and reset to last commit (plain)

1
git reset --hard
comments (0) flag fork

Undo last push (plain)

1
git push -f origin HEAD^:master
comments (0) flag fork

Undo last commit (plain)

1
2
3
4
5
$ git commit ...
$ git reset --soft HEAD^
$ edit                        
$ git add ....              
$ git commit -c ORIG_HEAD
[+] (1) more...
comments (0) flag fork

Remove/add origin (plain)

1
2
git remote rm origin
git remote add origin git@github.com:SWEngineer/sample_app.git
comments (0) flag fork

Delete tag (plain)

1
git tag -d <tag name>
comments (0) flag fork

Create tag (plain)

1
git tag -a v1.1.4 <hash code> -m “message”
comments (0) flag fork

Delete branch (plain)

1
git branch -D <branch name>
comments (0) flag fork

Name branch from sha1 (plain)

1
git branch <branch name> <sha1>
comments (0) flag fork

Rename a branch (plain)

1
git branch -m <branch 1> <branch 2>
comments (0) flag fork