Skip to content

mnvacym/gitSessionClass24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

gitSessionClass24

This repo is for git training purposes

Get started

git clone https://github.com/ammarvehbi/gitSessionClass24.git

Committing

git status
git add .
git commit -m "initial commit"
git push

Amend

! Only on your own branch, use with care!

git commit --amend
git push --force

Get changes from remote

git pull --rebase

Get changes from master without switching branches

git fetch origin master:master

Rebase with master

git rebase master

undo last commit

git reset --mixed HEAD~1

undo last 2 commits

git reset --mixed HEAD~2

cherry picking

git cherry-pick <commit>

squash last 3 commits

git rebase -i HEAD~3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages