Posts Tagged With: git

git push

Tagged with: , , , ,

Command to push the current repository in git to a online server

git push
No Comments »

Remove a Folder from Git

Tagged with: , , , , ,

Remove a given folder from a Git repository…

git rm -r cache/

Commit All Changes in Git

Tagged with: , , , , ,

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

Original Article

No Comments »

Merging a Branch with the Master Branch in git

Tagged with: , , , , ,

The commands needed to merge two branches in git.

git checkout master  
git merge BrachName
git commit -m "Merged" -a
No Comments »

Braching in Git

Tagged with: , , , , , ,

Use this command to create a new brach in a git Repository

git branch NameOfNewBranch
No Comments »

git status Without the Untracked Files

Tagged with: , , , , ,

Don’t show the untracked files in git status

git status | perl -pe "exit if(/Untracked files\:/)"

Using Git – the Basic Commands

Tagged with: , , ,

Initialize a New Project in Git…

git init
git add .
git commit

#Add a file
git add file.php

git status

git commit

Git Tutorial