Frequently Used Git Commands

Frequently Used Git Commands

1. Set your Identity to your repo

git config --global user.name "Sandeep Kumar Dan"
git config --global user.email sandeepkumardan@gmail.com

Help:-- List all config details "git config --List"

2. Create new local repo

git init

3. Clone new repo to local

git clone <”remote repo path”> (It creates working copy in local)

4. Add files to your working repo

git add or git add -a or git add *

5. Git Commit in local repo

git commit -m “your message”

git commit -a (Without message file add and commit)

6. Update Remote repo

git push origin

7. Check Git status of working repo

git status












Comments

Popular posts from this blog

How to do jQuery ajax post

SSH Commands