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 :: git create master branch in empty repository 
Shell :: check my current branch git 
Shell :: redirect stderr to file linux 
Shell :: uninstall all pip packages anaconda 
Shell :: mongo shell change db 
Shell :: checkout git specific commit 
Shell :: c interpreter 
Shell :: what is the use of cat command in linux 
Shell :: how to install specific version of software on mac using brew 
Shell :: instaling ansible on ubuntu linux 
Shell :: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections 
Shell :: add user with sudoer centos 
Shell :: bash manual command 
Shell :: install gitlab runner 
Shell :: remover completamente programa terminal ubuntu 
Shell :: Remplace Placeholder with shell command 
Shell :: WSL2 git init 
Shell :: download from web linux bash 
Shell :: create vite app 
Shell :: how to see running commands linux 
Shell :: checkout remote file different name 
Shell :: close app with terminal 
Shell :: ubuntu install meslo font 
Shell :: ng serve all interfaces 
Shell :: git view old version 
Shell :: what can i do with the error unable to issure certificate clone git 
Shell :: oracle vm cannot install guest edition windows 10 enterprise 
Shell :: react native setup ubuntu 20.04 
Shell :: programming scares me 
Shell :: ubuntu dpkg path 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =