Advertisement
load-net

git config

Mar 2nd, 2024 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. git config --list --show-origin
  2. git config --global user.name "Denis Hokxc"
  3. git config --global user.email [email protected]
  4.  
  5. git init
  6.  
  7. git config --global user.name "Your Name"
  8.  
  9.  
  10. git config --global init.defaultBranch main
  11. git add .
  12. git commit -m "Initial Commit"
  13. git status
  14. git branch -m master main
  15.  
  16.  
  17.  
  18. git status
  19.  
  20. git switch main
  21.  
  22.  
  23.  
  24. Слияние веток
  25. git switch style
  26. git merge main
  27.  
  28.  
  29. ssh-keygen
  30. cat ~/.ssh/cat id_rsa.pub
  31.  
  32.  
  33. git remote add origin [email protected]:pd/asterisklocal.git
  34.  
  35.  
  36.  
  37. git remote -v
  38.  
  39.  
  40.  
  41. git remote remove origin
  42.  
  43. git branch --set-upstream-to=origin/main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement