Skip to content

git

Seting up github

  1. ssh
  2. setinging user
git config --global user.name 'aura'

Git Log

To better display the commits

git log --oneline 
git config --global user.email DefnotFreddie@defnotfreddie@gmail.com

[!tip]- It has to be u’re gti name Pasted_image_20230903144619.png

Creating the branch

git switch -c <branch name>

Add files

  • It add files that haven’t been added yet
git -A . 
  • Add interactivle
git add -p 

[!example]- Pasted_image_20240508110725.png

Pulling submodels

git submodule update --init

Merge vs Rebase

[!bug] Use rebase locally Pasted_image_20240508123416.png

Undo the megre

git merge --abrot
git rebase --abrot

[!quote] docker