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 :: how to convert colab notebook to html 
Shell :: powershell global variable 
Shell :: delete a folder from git 
Shell :: update node manjaro 
Shell :: enviroment variables in firebase 
Shell :: cmd run exe as service 
Shell :: kubectl restart recreate pod 
Shell :: cutefish desktop enviroment install 
Shell :: fish set environment variable 
Shell :: git rebase feature branch 
Shell :: display settings ubuntu 20.04 in right side 
Shell :: uname linux 
Shell :: zip folder ssh 
Shell :: run crontab locally in windows 
Shell :: wsl distro 
Shell :: how to open terminal in vs code 
Shell :: sublime text 
Shell :: nano enable syntax highlighting 
Shell :: mac format drive for windows 
Shell :: What is user and group in linux? 
Shell :: how to keep track of github profile views 
Shell :: install grafana on amazon linux 2 
Shell :: bash alias with parameter 
Shell :: files 644 folders 755 
Shell :: strstr bash 
Shell :: docker exec 
Shell :: Scryptenconder install 
Shell :: first time linux 
Shell :: cent os install docker 
Shell :: ubuntu networkManager change dns 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =