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 user.name username
git config user.email 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
[/pre]

You may also interested in reading:

No comments:

Post a Comment