Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #eseguire nel terminale bash / git bash con il comando
- # bash GitLab1
- #
- #/bin/bash
- echo "Inserisci il tuo nome"
- read nome
- echo "Inserisci la tua email"
- read email
- mkdir demo
- cd demo
- git config --global user.name $nome
- git config --global user.email $email
- git config --global init.defaultBranch main
- git init
- echo "Prima riga" > demo.txt
- git add .
- git commit -m "primo commit"
- echo "Seconda riga" >> demo.txt
- git commit -am "secondo commit"
- echo "Prima riga" > demo.txt
- git add .
- git commit -m "secondo file"
- mkdir temp
- echo "*.png" > ".gitignore"
- echo "temp/" >> ".gitignore"
- echo "Inutile" > temp/inutile.txt
- git add .git
- git commit -m "inutile è ignorato"
- git commit -m "aggiunge solo .gitignore e non il file inutiile"
- git log
- echo "Ora aggiungete il file inutile con l'opzione -f"
Add Comment
Please, Sign In to add comment