Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux command: git
(view source)
Revision as of 08:53, 18 January 2016
342 bytes added
,
08:53, 18 January 2016
no edit summary
Line 69:
Line 69:
== Set upstream branch ==
== Set upstream branch ==
git branch --set-upstream-to=origin/master
git branch --set-upstream-to=origin/master
+
+
== Change last commit ==
+
git commit --amend
+
+
== Change older commit messages ==
+
git rebase -i HEAD~n
+
Replace pick with reword before each commit message you want to change.<br />
+
Save and close the commit list file.<br />
+
In each resulting commit file, type the new commit message, save the file, and close it.<br />
+
git push --force
+
+
+
== Cheat Sheet ==
== Cheat Sheet ==
http://wiki.herrerosolis.com/images/4/46/Git-cheat-sheet.pdf
http://wiki.herrerosolis.com/images/4/46/Git-cheat-sheet.pdf
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version