Git Hub commands #43
1.
Git config
Git cinfig is used to configure
username and email address. This
configuration is used when you code for GitHub.
Git config – global user.name “[name]”git
Config – global user.email “[emailaddress]”
2.
Git init
Git init is used to create new repository. And it is also used to create
exiting project as a git project.
Git init [repository name]
3.
Git clone
Git clone is used to download repository in your machine using URL.
Git clone [url]
4.
Git add
If you to add specific file, then you can use this command
Git add [file]
If you want to push more than one file from any directory, then use this
command
Git add*
5.
Git commit
Git command is used to add changes to your local repository.
Git commit –m “<message>”
6.
Git push
Git push is used to push the committed file to local repository.
Git push
7.
Git status
Git status show all files which are have to be committed to local
repository.
Git status
8.
Git branch
Git branch is used to display all branch name is current repository. If you
want to create new branch you can following command
Git branch <branchName>
9.
Git checkout
Git check out is used to switch one branch to another branch.
Git checkout –b <branch Name>
Git checkout
10.
Git pull
Git pull used to fetch and merge changes on local directory from remote
server.
Git pull downloads to the local project directory from a remote server.
Git pull.
Comments
Post a Comment
Thanks you
for comment and your suggestion