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 :: cloning repository github 
Shell :: instal ng2 order pipe 
Shell :: linux change user password 
Shell :: push an existing repository from the command line on github 
Shell :: There is 1 zombie process 
Shell :: git reset specific file 
Shell :: how to convert back to JSON in powershell 
Shell :: chocolatey local installed 
Shell :: delete remote commit 
Shell :: create git tags 
Shell :: bash sum numbers 
Shell :: ubuntu create bootable usb from iso command line 
Shell :: create new branch git from master 
Shell :: get ip address linux 
Shell :: git fetch upstream 
Shell :: download images from url terminal 
Shell :: git clone private repo 
Shell :: Rollback a Particular Commit in git command 
Shell :: oh my zsh git 
Shell :: pacman purge 
Shell :: linux unicode eingeben 
Shell :: linux awk 
Shell :: conemu git bash 
Shell :: install mtools 
Shell :: display hidden files mac 
Shell :: git list files with size 
Shell :: install git linux 
Shell :: Delete all linux package 
Shell :: pm2 remove process from list 
Shell :: when hostname ansible 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =