Discuss about git Basic command
We are discuss about git command it can help you. When you first time used git on your pc. Some below command which have helpful for first time git user.
git init - This command is used for create new local
repository.
git clone - This
command is used for create existing copy
of local repository.
git add [filename] – This command is used for one or more
files add on staging server.
git commit –m “commit message” - This command is used for commit message if
any changes on staging server.
git commit –a - This command is used for added files and
commit any files on server you have changed.
git push - This command is used for merge the changes on
master brarnch.
git status - This command is used for show all status of
changes. If you can any changes on git it will be show all status.
git checkout -b - This
command is used for create new branch and switch to it.
git pull - This command
is used for merge the changes on the main server to your working directory.
git diff - This command is used for show the conflicts
file.
git grep - This command is used for search the working
directoy.
Comments
Post a Comment