Advertisement
Virajsinh

Git Command

Sep 26th, 2024 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Git Command
  2.  
  3. - Server Clone Project
  4. - Default Set Branch Clone Code
  5. "git clone https://USERNAME:PASSWORD@bitbucket.org/repository/project.git ."
  6. "git clone -b branch-name https://USERNAME:PASSWORD@github.com/user/repository.git ."
  7.  
  8. - Specific Branch Clone
  9. "git clone -b feature-branch https://USERNAME:PASSWORD@bitbucket.org/repository/project.git ."
  10.  
  11. (optinal for not selected branch)
  12. - Set Branch
  13. "git checkout branch_name"
  14.  
  15. - Fetch Latest Code From development Branch
  16. "git pull origin development"
  17.  
  18. - install vendon folder
  19. "composer install"
  20.  
  21. - If Server File Changes And Not Get Pull From Branch Then Use
  22. "git stash"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement