Git Basic Commands

In this post we will look the very basic commands needed for Git based version control.

[pre class="brush:bash"]
# clone repository
git clone cloning_address

# display the status
git status

# optional adding user name and email
git config username
git config useremail

# add all files to the repository
git add *

# commit changes with a custom message
git commit -m "commit message"

# push changes to the repository
git push

# pull repository to the current directory
git pull

You may also interested in reading:

No comments:

Post a Comment