Git

Clone Data from server to local htdocs,public_html,www.

git clone https://linuxsguru@bitbucket.org/yourprojectrepo.git .

Git step:-
1. Login git using command
git config --global user.name "My Name"
git config --global user.email "user@domain.com"
2. Clone the project
git clone git@github.com:user/test.git
3. Pull the leatest code
git pull origin (branch name)
4. Changes the file or folder then check status
git status
5. Added the file or folder
git add (file or folder name with path)
6. Commit the comments
git commit -m ‘committing added changes’
7. Push the code
git push origin (branch name)
8. View Changes
git commit -a
9. Check all branches
git remote show origin
10. Change Branch
git checkout -b

Leave a Reply

Your email address will not be published. Required fields are marked *