مدیریت کاربران مشترک
بروز خطا
امتیازات دریافتی
حساب
آموزش هوش مصنوعی برای برنامه نویسان
وبینار ها
این چندتا دستور گیت، دستورات پایهای گیت هستن که حتما لازمه بدانیم
گیت خیلی وسیعتر از این چندتا کامنده ولی خوب اینا تقریباً پیشنیازها هستند
#-------------------- Usefull commands --------------------#
git init
git add fileName
git add -A
git checkout -b fix
git log
git diff HEAD
git diff --staged
git reset fileName
checkout -- fileName
git branch fix
git branch -d fix
git show s1354asdqw2
git tag -a v1.3 -m 'version tag'
git push origin --tags
gpg --gen-key
gpg --list-secret-keys --keyid-format LONG
git config --global user.signingkey
git tag -s v1.4 -m 'releasable, signed by me'
git commit -S -m 'signed commit here'
git blame fileName -L50,80
git bisect #start/bad/good
git help everything#-------------------- getting start --------------------#
#Git global setup
git config --global user.name "Taha Falahati"
git config --global user.email "taha.fala@yahoo.com"
#Create a new repository (new project)
cd $projectPath
git init
vim .gitignore #edit gitignore
#Existing project
cd $projectPath
git init
git remote add origin https://gitlab.com/taha.fala/yourRepo.git
git add .
git commit -m "Initial commit"
git push -u origin master
#Existing Git repository
cd $projectPath
git remote rename origin old-origin
git remote add origin https://gitlab.com/taha.fala/yourRepo.git
git push -u origin --all
git push -u origin --tags