Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git add -p

Stage this hunk [y,n,q,a,d,s,e,?]? ?
y - stage this hunk
n - do not stage this hunk
q - quit; do not stage this hunk or any of the remaining ones
a - stage this hunk and all later hunks in the file
d - do not stage this hunk or any of the later hunks in the file
s - split the current hunk into smaller hunks
e - manually edit the current hunk
? - print help
@@ -4,7 +4,7 @@

 resources :cats
 resources :dogs
-resources :lizards, only: [:index, :create]
+resources :lizards, only: [:index, :create, :show]
 resources :ninjas
-resources :turtles, only: [:index, :create]
+resources :turtles, only: [:index, :create, :show]
 resources :xylophones
Stage this hunk [y,n,q,a,d,s,e,?]?
Comment

git add

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

//to add all changed files
git add -A
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

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

//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 :: button click event powershell 
Shell :: uninstall node 
Shell :: edit default port for linux server 
Shell :: git deleted file error 
Shell :: git set remote origin url 
Shell :: find in file linux 
Shell :: ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory 
Shell :: how to use blackeye 
Shell :: git commands 
Shell :: Linux Mint reset xfce-panel 
Shell :: how to enable the Visual Studio Code GitHub Support and set a Personal Access Token 
Shell :: install youtube-dl ubuntu 
Shell :: unable to install mongodb on ubuntu 22.04 
Shell :: Cannot make for rpm, the following external binaries need to be installed: rpmbuild 
Shell :: kill process in windows 
Shell :: Git marge branch into master 
Shell :: port kill masocs 
Shell :: *15856 connect() to unix:/var/run/php/php8.0-fpm.sock failed (11: Resource temporarily unavailable) 
Shell :: how to kill a process with linux 
Shell :: windows docker volume location 
Shell :: git stash apply undo merge conflict 
Shell :: linux find files ending with 
Shell :: size of folder 
Shell :: scheduler ubuntu cmd 
Shell :: multiple kubeconfig in one file 
Shell :: git push ci skip 
Shell :: remove migration 
Shell :: docker-compose ps 
Shell :: igraph 
Shell :: install passport local 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =