Remove a Folder from Git
Tagged with: command, folder, git, reculsive, remove, rm
Friday, July 11th, 2008 09:41 PM
Remove a given folder from a Git repository…
git rm -r cache/
Remove a given folder from a Git repository…
git rm -r cache/
Telling Git when you’ve added, deleted and renamed files gets tedious. Use this command and Git will look at the files in the current directory and work everything out for itself. The -z and -0 options prevent ill side-effects from filenames containing strange characters.
git-ls-files -d -m -o -z | xargs -0 git-update-index --add --remove
The commands needed to merge two branches in git.
git checkout master
git merge BrachName
git commit -m "Merged" -a
Use this command to create a new brach in a git Repository
git branch NameOfNewBranch
Initialize a New Project in Git…
git init
git add .
git commit
#Add a file
git add file.php
git status
git commit
[tags]git,command,source,control[/tags]