Git

0

Rename a remote url in git

When collaborating with others, you might be using multipe remotes. I found this useful for setting up an automatic delpoyment system where i setup a remote called ‘deploy’ which I can push to deploy....

0

Fetch branches from multiple remotes

Git lets you refer to multiple remotes from your local. This strategy helps you refer to different forks of the same repository. However, this also means that time and again you will need to...

0

List the commits that changed a file

Lets say you deleted a file in your branch and you later realize that you need it back. If you remember the file path + filename, you can easily check which was the last...

0

Show the files changed in a git commit

While the git log command by itself is good enough to the commit hash and see the commit message, sometimes it helps to see which files were modfied as part of a commit. You...