Skip to content

SUVENDUC789/Necessary-Git-Command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Thanks to all the contributors ❤️

Necessary Git Command

1.Initialize local Repo:

git init

2.All files are tracked by git:

git add *

3.After tracking you need to commit them :

git commit -m "ENTER YOUR MSG."

4.Check status of your current repo :

git status

5.add and commit an already tracked file :

git commit -a -m "ENTER YOUR MSG."

6. To show or check connectivity between any local and remote repo :

git remote

7. origin = NICK NAME OF URL [to connect a remote origin with local repo]:

git remote add origin URL

8. upload file from local to remote repo:

git push origin master

9. fetch file from remote repo:

git clone

10. it is shows the remote repo link to the user:

git remote -v

11. ROLL BACK:

git revert 7-DIGIT-OF-COMMIT-HASH

12. Creating Local User name in your local directory:

git config --global user.name "Your_Name"

13. Creating Local User email in your local directory:

git config --global user.email "Your_Mail_id"

About

Necessary Git Command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published