[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 *
# 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
[/pre]
# 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 *
# 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
[/pre]
Comments
Post a Comment