Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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.
Comment

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.
Comment

git

git init
git add . 
git commit -m "First commit"
git remote add origin "URL of repository"
git push --set-upstream origin master
Comment

git

Git helper
--------- Watch this
https://www.youtube.com/watch?v=lX9hsdsAeTk
Comment

Git

git status On branch master No commits yet Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: index.html
Comment

git

Git is a software for distributed version control, ie, it is used Mainly to
track changes in any set of files.
Comment

git

echo "# Taxi_Projet" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/SaidKSI/Taxi_Projet.git
git push -u origin main
Comment

Git

git checkout B1  //Switch to a branch ==> B1
git reset --soft HEAD~1  // get the changes commited to B1 back in the Local system staging area
//EDIT as you need//
git add , 
git commit -m "new changes upon chnages"
git push origin B1
add a new git commit (edited)
Comment

git

brew install --cask git-it
Comment

git

git remote set-url origin https://github.com/myName/GitTest.git
Comment

git

//To see all the created branch within a repository
$ git branch -a
Comment

git

//To see all the created branch within a repository
$ git branch -a
Comment

git

git init
git add .
git commit -m "initial commit"
git remote add origin https://github.com/my_username/my_project.git
git push --set-upstream origin master
Comment

git

echo "# AmberSafety" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/n54/AmberSafety.git
git push -u origin main
Comment

git

#Best and wiser tool for a wise developer!!

#Here a tip to install it quick

# On Windows 10 
 https://git-scm.com/download/win
# On Linux
sudo dnf install git-all
# On a Debian-based distribution as Ubuntu
sudo apt install git-all
# On Mac
https://git-scm.com/download/mac
Comment

git

# add files to exisitng 
git add .
git commit -m "Message"
git push
Comment

git

git remote set-url origin https://github.com/myName/GitTest.git
Comment

git

//To see all the created branch within a repository
$ git branch -a
Comment

git

git remote set-url origin https://github.com/myName/GitTest.git
Comment

git

git remote set-url origin https://github.com/myName/GitTest.git
Comment

git

echo "# walletapp-with-SpringBoot-" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/dollarkid1/walletapp-with-SpringBoot-.git
git push -u origin main
Comment

git

git remote add origin git@github.com:sanjanabagodi/Airline-Booking-System.git
git branch -M main
git push -u origin main
Comment

git

echo "# Airline-Booking-System" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:sanjanabagodi/Airline-Booking-System.git
git push -u origin main
Comment

git

$ cd /Users/user/my_project
Comment

git

root          ;; 作業ディレクトリ
├ test.txt    ;; 作業ファイル
└ .git        ;; Gitディレクトリ
 ├ index     ;; ステージング・エリア
 ├ config
 ...
Comment

git

echo "# miniature-fortnight" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/username/miniature-fortnight.git
git push -u origin main
Comment

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
Comment

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
Comment

git

git remote add origin https://github.com/sandy1310/content.git
git branch -M main
git push -u origin main
Comment

git

git init
git remote add origin https://github.com/xxx/yyy.git
git add .
git commit -m "first commit"
git push -u origin master
Comment

git

echo "# learnwithshahin" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:itsmdshahin/learnwithshahin.git
git push -u origin main
Comment

git

$ git clone url_of_your_remote_repository   # Clone a repository from a remote repository  
$ git add file1 file2    # will add those two files to the index if they were modified  
$ git commit -m "Meaningful commit message"   # will commit those two files (locally)  
$ git add .   # will add all of the modified files to the index at once  
$ git commit -m "Other meaningful commit message"   # will commit all of those files together  
$ git push origin master   # send all commit to the remote server
Comment

git

github desktop changed their logo :O
Comment

git

echo "<message>" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin <link>
git push -u origin main



…or push an existing repository from the command line

git remote add origin <>
git branch -M main
git push -u origin main
Comment

PREVIOUS NEXT
Code Example
Shell :: gitlab push to create 
Shell :: ubuntu 18.04 get public ip address 
Shell :: apt install codium 
Shell :: installing font awesome brand icons 
Shell :: check ubuntu uptime 
Shell :: latex number listing as equation 
Shell :: kill process bash 
Shell :: linux how to make makefile 
Shell :: git config log 
Shell :: where to find files in WSL unbuntu home directory on windows 
Shell :: vim quit 
Shell :: nvm node 
Shell :: brew show package info 
Shell :: git global ingnore 
Shell :: install pytorch in virtual environment 
Shell :: bash script change directory run a command 
Shell :: npm install on Termux 
Shell :: how to make a file executable in linux 
Shell :: import docker image 
Shell :: how to install and connect to ftp on ubuntu 18 
Shell :: github new repository 
Shell :: dockerfile env 
Shell :: what is git rebase 
Shell :: fix drive readonly in linux 
Shell :: c# check if word is installed 
Shell :: bubulle epitceh 
Shell :: sed disable disallow root login 
Shell :: npm install assemble script 
Shell :: bash grep 
Shell :: how to find out what packages I installed from the AUR 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =