Posts Tagged With: git

Remove a Folder from Git

Tagged with: , , , , ,

Remove a given folder from a Git repository…


git rm -r cache/
No Comments »

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 »

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

[tags]git,command,source,control[/tags]

No Comments »