Answers for "git"

1

git

Git has been the standard, it is more transparent in operations
then other source control systems and allows more flexibility in terms of 
scipting and automating, logging etc. Git is also great for beginners 
fostering a solid understanding of principals involved rather then
"black box" results. When things go wrong (and they will) you will have 
the grounding nessesary to troubleshoot and deal with merge conflicts 
and other low level issues. That being said, the terminology used in tools etc
is transferable to other systems.
Posted by: Guest on November-22-2020
13

Git

Git is a distributed version-control system for tracking changes in source
code during software development.

It is designed for coordinating work among programmers, but it can be used to
track changes in any set of files.

Its goals include speed, data integrity, and support for distributed,
non-linear workflows.
Posted by: Guest on August-17-2020
2

git

git init
git add . 
git commit -m "First commit"
git remote add origin "URL of repository"
git push --set-upstream origin master
Posted by: Guest on December-13-2020
0

git

Git helper
--------- Watch this
https://www.youtube.com/watch?v=lX9hsdsAeTk
Posted by: Guest on December-12-2020
0

git

git remote add origin https://github.com/sandy1310/content.git
git branch -M main
git push -u origin main
Posted by: Guest on September-07-2021
0

git

echo "# learnwithshahin" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:itsmdshahin/learnwithshahin.git
git push -u origin main
Posted by: Guest on July-07-2021
0

git

echo "# projet-tummurank-" >> README.md
git init
git add 
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/doxandem/projet-tummurank-.git
git push -u origin main
Posted by: Guest on October-02-2021
0

git

github desktop changed their logo :O
Posted by: Guest on March-11-2021
0

Git

git add .
git commit -m "Initial Commit"
git remote add origin https://github.com/YOUR_USERNAME/NEW_REPO_NAME.git
git push -u origin main
Posted by: Guest on September-27-2021
0

git

//الخطوات :1.عمل المشروع من جيت هب مثلا  2.اعمل كلوني في الكمبيوتر تبعي  3.اعمل ادد للملف او لأي تعديل حصل 3.اعمل كوميت 4.اعمل بش لل جيت هب
sudo git init    \\ in start any projeck or creat first folder repo
sudo git clone https://github.com/goodwillx/repo1.git     \\عملنا استنساخ للمستودع على git
sudo chmod -R 777 repo1   \\  اعطاء الصلاحيات في التعديل للفولدر
sudo code --user-data-dir="~/.vscode-root"       // open  visual studio code in root 
 \\ملاحظة عامة المرحيلي بعد الاد هي الكمنت مباشرة //
 sudo git status 
 sudo git add *   //add all folder and file in the path
 sudo git add  index.html  
 sudo git add  css
 <<<<
 sudo git restore --stage name file or *
 sudo git clean -n   \\remove file \\this file before add stage 
 sudo git add file you ned 
 sudo git clean -f \\ remove
 sudo git reset testfile.txt   //remove file from stage 
<<<<<<
 sudo git commit -m "add any comment about your code"
 sudo git status   \\ هون في هاي المرحلة بتكون وصلت لامرحلة انه الكود وصل لل ريبو لوكل 
sudo git branch    /give you all branch 
sudo git remote -v      \give your remote on github or server on any your repo global
sudo git push RemoteName BranchName    // send your change to repo global //for ex //sudo git push origin main

 >>>>>>>>>>>>
 
 sudo git pull my-remote  // take your any edit in github to your pc //  for ex// sudo git pull origin
 
 >>>>
git config --global user.name   //edit config         git config --global user.name "meto"
sudo git config -l --show-origin  //where git you file config
sudo git config --global --edit
>>>>>

>>>>>>>>>>>>>
sudo ssh-keygen -t rsa -b 4096 -C "[email protected]"
sudo cat /root/.ssh/id_rsa.pub        //add for site 
sudo cat /root/.ssh/id_rsa            \\ the file key
sudo ssh -T [email protected]  \\for connect to github  12345678++
<<<<<<<<<<<<<
sudo git config --global alias.st status \\this create shortcut for command status \\for ex \\  sudo git st 
\\and can you add any shortcut for file direct without command \\sudo git config --global --edit
<<<<<<<<<<<<
sudo git branch   \\ruslt ex main
sudo git branch test4   \creat branch new \\this branch name test4
\\ or
sudo git checkout -b name-your-new-branch      //this command for create branch  and switch for new branch auto
sudo git branch 
sudo git checkout test4  \\ switch between from main to test4
sudo git branch -d Name-your-branch    \\for delete any branch   or -D \\delete branch with edit
sudo git branch -m name-new-brach-name   \\Rename your branch
<<<<<
sudo git branch 
sudo git checkout master   \\\or main
sudo merge name-your-branch    // make merge with master //opthinal in command can merge in inerface github if you manger in github
sudo git branch -d Name-your-branch  
sudo git push RemoteName BranchName    // send your change to repo global //for ex //sudo git push origin main

<<<<<

sudo git stash   //save the file and not push now onle save dont delete
\\or
sudo git stach save "any messeg"    \\save with messege the file and not push now onle save dont delete
sudo git stash list
sudo git stash pop //give you what save and delete
sudo git stash apply //give tou what save and dont delete
sudo git stash pop stach@{2}   //or 3 4 5 6 any number
sudo git stash apply stach@{3} 
sudo git stach drop                          //delete last stach
sudo git stach drop  stach@{3}               \\delete stach number 3
sudo git stach clear                          \\delet all stach
sudo git stash list
sudo git stach show                           \\show what inside the stach
sudo git stach show stach@{3}                    \\show what inside the stach number 3
sudo git commit -m ""
sudo git push 	Remote branch


<<<<<,
git log \\\give you all commit
sudo reset --hard id-commit-from-log   \\\delete commit below head \\opetion dangers not play please
 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                                                    كيفية عمل طريقة لمنع او لتجاهل بعض الملفات او امتدادت النظام او اي ملف تابع لبكج معين
sudo nano .gitignore  //add inside ex //*.log   \\\   لمنع الجيت من تحميل او بوش اي ملفات ذات امتداد لوج // !vip.log  اشارة التعجب يعني ماعدا هاد الفايل
//serch fo ex on enternet on git ignore patterns  \\
>>>>>>>>>>>>>>>>>.
sudo git tag v1.0  // for create virsion program 
 sudo git tag  
 sudo git push origin v1.0   //create push to github for 

sudo git tag -a v2.0 -m " second version"
sudo git push origin v2.0 

sudo git tag -l "v1.*"  //for search to virtsin 
sudo git tag -d v1.0   //for delete on local virsion tag
sudo push origin --delete v1.0     //delete virsion tag in global on github
Posted by: Guest on October-07-2021

Browse Popular Code Answers by Language