List all files that will be added in git
git ls-files -o --exclude-standard
Will show all files which will be listed with git add .
git ls-files -o --exclude-standard
Will show all files which will be listed with git add .
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:
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.
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.
Several customers host their sites on shared hosts which do not allow ssh access or do not have git installed on their servers.
Use FTP only for media files and settings ... but deploy very fast with git:
After pull from origin, when a merge conflict arises:
diff -up original.php new.php > filename.patch