Using Github CLI
run `gh auth login`
puis `gh repo create [name] --public`
#1: Create a folder for this project on your local hard drive
mkdir my-project
#2: change into this folder
cd my-project
#3: initialize a new, empty Git repository here
git init
...after having written some code + created some files...
#4: add all changes to the next (= first) commit
git add .
#5: create the first commit
git commit -m "Initial commit"
git remote add origin https://github.com/GithubUserName/RepoName
git remote -v #check if it worked
git push --set-upstream origin master
git submodule add [github link]
git clone https://[PAT]@github.com/[account]/[repo].git
git branch [new-branch]
git checkout -b [new-branch] [existing-branch]
git checkout [branch]
git checkout master
git pull [origin] master
git merge branch
git push [origin] master
git checkout [branch]
git pull [origin] master
git branch -d [branch]
git commit -am "message"
git config --global alias.ac "commit -am"
git --amend -m "edited message"
git revert [commitID]
git bisect [commit de départ]
git bisect good #To Go to next commit
git log --graph --oneline --decorate
git checkout -