| Edit | Back | pdf:writer| three column layout

Git Cheatsheet

Commonly Used:
git clone $git_repo_url get the copy of source code
git config --list To view all users
git status info about changed files
git log status history
git diff whats changed in local files, Won't report added files
git diff --cached what is about to be committed
git add add the files to commit list
git reset -- $file remove the added files from commit list
git commit -a commit the added files to repository, will open editor for adding comment
git push origin master push the committed changed to public repository
git push $git_repo_url push the committed changed to public repository
git-svn command:
git-svn clone [http location of an svn repository] TO WORK WITH AN SVN REPOSITORY BUT WORK WITH GIT LOCALLY
git-svn dcommit TO PUSH (COMMIT) CHANGES TO THE REMOTE SERVER
git-svn rebase TO UPDATE YOUR LOCAL REPOSITORY FROM THE SVN REPOSITORY
Creating New Repository:
mkdir project_directory
cd project_directory
git init
create files
git add .
git commit . -m "Initial Load"

 | Edit | Back| pdf:writer| three column layout