ssh-keygen -t rsa -C "<adresse_email>"
ssh-add
git init
git add config.toml
git commit -m "config commit"
git branch -M main
git remote add origin git@github.com:thomasbruchet/test.git
git push -u origin main
git add .
git commit -m "ajout gitignore"
git push -u origin main
touch makefile
git:
git add .
git commit -m "$m"
git push origin main
make git m=“test script”
curl -u '<user>' https://api.github.com/user/repos -d '{"name":"<REPO>", "description":"<DESCRIPTION>", "homepage":"https://github.com", "private":true }'
echo "# test2" >> README.md
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:thomasbruchet/test4.git
git push -u origin main
git remote add origin git@github.com:thomasbruchet/test2.git
git branch -M main
git push -u origin main
#!/bin/sh
repo_name=$1
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
curl -u 'your_github_username' https://api.github.com/user/repos -d "{\"name\":\"$repo_name\"}"
Clear le Github
git rm -r --cached .
git commit -m ".fresh clean"
git push -u origin main
Push avec les nouvelles options gitignore
git add .
git commit -m ".gitignore is now working"
git push -u origin main