Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computer_science:git:resources:git_cheatsheet [2020/11/19 17:02] – carlossousa | computer_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 "< | git commit -m "< | ||
+ | git push | ||
+ | |||
</ | </ | ||
Line 46: | Line 48: | ||
git push -f origin master | git push -f origin master | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Pushing new branch requires username / password ===== | ||
+ | |||
+ | <code bash> | ||
+ | # Fix with | ||
+ | git remote set-url origin git@github.com:< | ||
+ | |||
+ | # Push the branch | ||
+ | git push origin < | ||
</ | </ | ||