computer_science:git:resources:git_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer_science:git:resources:git_cheatsheet [2020/11/19 17:02] carlossousacomputer_science:git:resources:git_cheatsheet [2023/12/01 12:07] (current) – external edit 127.0.0.1
Line 22: Line 22:
 # Commit with Comment # Commit with Comment
 git commit -m "<comment>" git commit -m "<comment>"
 +git push
 +
  
 </code> </code>
Line 46: Line 48:
 git push -f origin master git push -f origin master
  
 +
 +</code>
 +
 +===== Pushing new branch requires username / password =====
 +
 +<code bash>
 +# Fix with
 +git remote set-url origin git@github.com:<username>/<rep>.git
 +
 +# Push the branch
 +git push origin <branch-name>
  
 </code> </code>
  
  
  • computer_science/git/resources/git_cheatsheet.1605805376.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)