From 3def33bef7c78cd929fa97b8fc372a4102d3907d Mon Sep 17 00:00:00 2001 From: "Jakub (james) K" Date: Tue, 22 Oct 2024 11:15:02 +0200 Subject: [PATCH] first commit --- Git (komendy).txt | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Git (komendy).txt diff --git a/Git (komendy).txt b/Git (komendy).txt new file mode 100644 index 0000000..e9ab0ed --- /dev/null +++ b/Git (komendy).txt @@ -0,0 +1,59 @@ +git status +git add. +git commit +git log +git remove -v +git remote remove file_name +git remote add vps +git remote add priv +git pull vps +git pull priv +git push vps +git push priv +touch.gitignore + sudo nano gitignore + *.swp + *.out + + # Usefull: + docker volume create portainer_data (?) + sudo usermod -aG docker user (?) + sudo docker run --detach\ (?) + cd .. + ip r + touch .token (ukryty plik) + + + # Windows: + ipconfig + ssh mati@192.168.10.70 (-p 2233 [Port 2233]) (password: pass, passpass, passpasspass) (example of IP address) + + # Linux: + mkdir work + cd work/ + mkdir 3i + cd 3i/ + mkdir JakubK-proj + cd JakubK-proj/ + ls -l -a -R ( -a pozwala widzieć ukryte pliki, -R podkatalogi) + touch token + sudo nano token + echo $(cat token) + + # Github (priv): + git remote set-url priv https://token:$(cat token)@github.com/JJgg260/MIELSK-PASSO/lesson.git + git remote -v + git init (inicjacja) + git add . + git commit + git push priv + + # Gitlab (local): + git remote set-url local http://token:glpat-qAkxUwsR9yF2_UjVo1zK@localhost:8080/3i/test.git + git init + git remote -v + git status + git checkout -b jkukiela (zmiana branch-a) + git status + git push local +