Let say you stage all your Git changes and then commit them.
git add --all git commit -m "Edit REDME.md"
There's a typo on
REDME — should read
README — and we want to "amend" this error.
git commit --amend
commit --amend command lets you edit the commit message in the
You can also change the message by specifying the new message in the command line with the
git commit --amend -m "Edit README.md"
As the commit message is part of the commit itself, editing the message alters the commit hash, which means that if you've already pushed a commit to a remote, the remote won't let you push the new edit directly. But you can force that to happen.
git push --force branch-name
git push origin $(git branch | grep \* | cut -d ' ' -f2)
open $(git remote get-url origin)
After cloning a repository, you can have git not track changes you make to one (or multiple) files.
git update-index --assume-unchanged file
After this command is run, the repository continues tracking the file. It might have changes that git will want to commit.
git update-index --no-assume-unchanged file
In case you made changes while
--assume-unchanged was on and don't want to keep the changes on the file: Roll-back to where the repository is when you want to pull or push changes.
git checkout -- file
A design I did early this year, just for fun. Playing around with Rhino 5 and Grasshopper. Post-process was made in Adobe Illustrator and Photoshop.
An R letter set in Futura Bold was extruded and intersected by equidistant planes.
Made January 29th 2014, and posted today on Dribbble.