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:05] – [Push Changes to Remote Git] carlossousa | computer_science:git:resources:git_cheatsheet [2023/12/01 12:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 24: | Line 24: | ||
git push | git push | ||
- | </ | ||
+ | </ | ||
===== Delete All Commit History ===== | ===== Delete All Commit History ===== | ||
Line 48: | 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 < | ||
</ | </ | ||