Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Wiki
Git Cheat Sheet
Changes
Page history
New page
Templates
Clone repository
Update Git Cheat Sheet
authored
1 year ago
by
Davide Mor
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Git-Cheat-Sheet.md
+3
-2
3 additions, 2 deletions
Git-Cheat-Sheet.md
with
3 additions
and
2 deletions
Git-Cheat-Sheet.md
View page @
32170c10
...
...
@@ -22,7 +22,8 @@
-
"Oh sh
*
t" moments
```
git checkout -- <FILE> // Reset changes to a specific file
git merge --abort // Abort a merge if there are any conflicts
git merge --abort // Abort a merge if there are any problems
git rebase --abort // Abort a rebase if there are any problems
git reset <HASH> // Soft reset to given hash (only removes commit)
git reset --hard <HASH> // Hard reset to given hash (also removes all physical changes)
...
...
@@ -45,7 +46,7 @@
git push -u origin <BRANCH> // Push the local branch to origin
```
-
Merging
-
Merging
/rebasing
```
git merge <BRANCH> // Merge branch into the current one
git rebase <BRANCH> // Move all of the current commits to the top of branch
...
...
This diff is collapsed.
Click to expand it.