Skip to main content

git

Remove a remote in git

For testing or for basic deployment setup for small sites I often use two remotes. Origin for my backup and live or test as a second remote. To remove a remote named test use:

Delete a remote branch with git

To delete a remote branch, you can’t use the git branch command. Instead, use the git push command with --delete flag, followed by the name of the branch you want to delete.

Ignore file mode changes in git

As I do not want to manage my file modes with the git repo I'm rather annoyed when a simple file mode change states as changed files in git status or in git diffs.

Create fast updates for ftp

Several customers host their sites on shared hosts which do not allow ssh access or do not have git installed on their servers.