git push
Command to push the current repository in git to a online server
git push
Command to push the current repository in git to a online server
git push
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
Don’t show the untracked files in git status
git status | perl -pe "exit if(/Untracked files\:/)"
Initialize a New Project in Git…
git init
git add .
git commit
#Add a file
git add file.php
git status
git commit