Nono.MA

FEBRUARY 10, 2020

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

The commit --amend command lets you edit the commit message in the vim editor.

You can also change the message by specifying the new message in the command line with the -m argument.

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

FEBRUARY 5, 2020

git push origin $(git branch | grep \* | cut -d ' ' -f2)

NOVEMBER 20, 2018

You can set Git to assume certain files haven't changed even when they have (without adding them to your .gitignore file). This way, it won't track changes to make to one (or multiple) files.

Tell Git to assume a file is unchanged

git update-index --assume-unchanged file

Tell Git not to assume a file is unchanged anymore

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

Roll back the changes you made while the file was --assume-unchanged

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

JUNE 18, 2014

R Intersected On Dribbble

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.

Want to see older publications? Visit the archive.

Listen to Getting Simple .