How to revert to an earlier version in git

1 Comment

$ git log
$ git git reset --hard SHA1_HASH
$ git push --force

Links that help:

Git workflow


I’ve just started working with a team on git and I wanted a visual of what was going on every time I made a change and needed to checkin some code.

Abandon branch
$ git branch -D topic-branch

How to create a remote branch and have your friend get it

Here’s a graphic showing one way of creating a remote branch, checking it in locally, pushing it to the remote server, and then having your friend pick it up.

Pull requests

Here Mary developers a new feature locally, then pushes it to here remote branch for others to see.
She then issues a pull request allowing others to view.


%d bloggers like this: