Skip to main content

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 *

# add and remove the files accordingly
git add -A

# 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: