Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git add .

git add .
git commit -m "intial commit"
git push
Comment

git add

//to add a single file
git add <FILE_NAME>

//to add all changed files
git add -A
Comment

git add command

//to add file to the repository
1. git add youFilePath

//if you want to add all file then
2. git add .
Comment

git add

echo "# SpringSecurity" >> 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/SpringSecurity.git
git push -u origin main
Comment

adding to git

git remote add origin https://github.com/Kabuye-Rogers256/ubey.git
git branch -M main
git push -u origin main
Comment

git add

git status
git add .
git commit -m "describe what you did to the code in here in present tense" 
Comment

Git add

git add .

git commit -m "Bug Fixed"

git push
Comment

git add

--::-- Using SSH --::--
#### Create SSH key ####
$ ssh-keygen -t ed25519 -C "<YourEmail>@<Domain>.com"

#### Copy the SSH key ####
$ cat /path/to/private_key_file.pub

#### Add the SSH key to your GitHub account ####

$ echo "# myPracticeRepo" >> README.md
$ git init
$ git add README.md
$ git commit -m "first commit"
$ git branch -M main
$ git config core.sshCommand 'ssh -i /path/to/private_key_file'
$ git remote add origin git@github.com:<UserName>/<RepoName>.git
$ git push -u origin main


--::-- Using HTML --::--
$ echo "# myPracticeRepo" >> 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>/<RepoName>.git
$ git push -u origin main
Comment

git add .

git add <file> or you can do git add -A to add all files
Comment

git add

//to add file to the repository
1. git add yourFilePath

//if you want to add all file then
2. git add .
Comment

git add

git add
Comment

PREVIOUS NEXT
Code Example
Shell :: windows terminal 
Shell :: how to install docker linux mint 
Shell :: publish ionic app 
Shell :: git push default 
Shell :: jq select where 
Shell :: remove java specific version linux 
Shell :: grep ignore repeated lines 
Shell :: kill docker 
Shell :: you are running create-react-app 
Shell :: how to create a github account 
Shell :: how to get out from vim editor 
Shell :: What Are The Correct Permissions For ~/.ssh Directory? 
Shell :: rmdir command 
Shell :: linux show current memory usage 
Shell :: ubuntu cat last 10 lines 
Shell :: loop through a collection mongo db 
Shell :: cmd files in directory 
Shell :: create branch git 
Shell :: how install xampp in ubuntu 
Shell :: install kali software manager gnome support 
Shell :: check if bash variable is undefined 
Shell :: what does git restore do 
Shell :: bash tar list of files from folder 
Shell :: Automatically run program on Linux startup via systemd 
Shell :: ssh into directory 
Shell :: cookiecutter 
Shell :: terminal public ip 
Shell :: Unable to upgrade Flutter: no origin repository configured. 
Shell :: rm remote git 
Shell :: android/gradlew EACCES error 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =