Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git bash

--::-- 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 in Bash

. ~/git-completion.bash
Comment

Git bash

mv  -v ~/Downloads/* ~/Videos/
Comment

git bash command

//how to check the repository name in git bash
$ git config --get remote.origin.url
Comment

PREVIOUS NEXT
Code Example
Shell :: how to edit a file in terminal windows 
Shell :: aws s3 change bucket region 
Shell :: git submodule update --init --recursive 
Shell :: connect ftp terminal ubuntu 
Shell :: bash delete a command line 
Shell :: how add ssh 
Shell :: install pip mac 
Shell :: scp command from local to remote 
Shell :: printf linux 
Shell :: Cocoapods not found in android studio but flutter run works 
Shell :: conda uninstall tensorflow 
Shell :: how to uninstall a package in react 
Shell :: bash ps sort by time 
Shell :: How to clean up the git repo and reduce its disk size 
Shell :: git commit no pré commit 
Shell :: meterial ui installesions 
Shell :: linux find file type under a specific folder 
Shell :: open a file from the integrated terminal in Visual Studio Code? 
Shell :: git save staged changes to file 
Shell :: instalacion mkweb 
Shell :: how to copy zip file from remote to local 
Shell :: htaccess route all requests to index.php 
Shell :: bijoy bangla keyboard for linux 
Shell :: how to send data to pushgateway from a shell script 
Shell :: install ntopng on ubuntu 20.04 
Shell :: sslkeylogfile not working linux 
Shell :: como crear icono de aplicacion en linux 
Shell :: installation testing 
Shell :: rhel 8 docker 19.03 
Shell :: louch tensorboard on remote server 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =