Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to upload project on github using command

//upload project to github using git bash
1 git init
2 git add .
3 git commit -m "first commit"
4 //create a repository in git hub
//copy the url of new repository created and paste in following command before .git
5 git remote add origin url.git
6 git push -u origin master

//Commands to Update Existing repository
// Find & copy Central Repo URL
git remote add upstream https://github.com/username/repositoryname.git
//pull down any changes and sync the local repo with the central repo
git pull upstream main  // main is the default branch you can write your own branch name
//add changes
git add .
git commit -m "Message"
//push your changes up to your fork
git push origin master
Comment

how to upload on github with command

git remote add origin https://github.com/yourusername/your-repo-name.git
Comment

PREVIOUS NEXT
Code Example
Shell :: git config ssh protocol 
Shell :: install ros 
Shell :: how to get visual studio code on a raspberry pi 4 
Shell :: edit commit message 
Shell :: disable swap kubernetes ansible 
Shell :: ssh tunnel map 
Shell :: current directory terminal mac 
Shell :: gitignore files that are already tracked 
Shell :: git add ssh key 
Shell :: Bash script Array + For loop 
Shell :: using virtualenvwrapper to create new virtualenv 
Shell :: debian 9 enable rc.local 
Shell :: how to push to new branch in github 
Shell :: ruby install on fedora 
Shell :: install admin lte in laravel 
Shell :: powershell slice string 
Shell :: what is remote repository 
Shell :: speedtest linux 
Shell :: learn prisma 
Shell :: pyenv install ubuntu 
Shell :: bash rename multiple files pattern 
Shell :: awk define string as delimiter 
Shell :: bootar pendrive linux 
Shell :: virtualbox ubuntu 
Shell :: install docker on windows server 2019 
Shell :: commande pour installation de dotnet 3.5 offline 
Shell :: chmod chown 
Shell :: ssh copy to clipboard 
Shell :: merge pdf in linux 
Shell :: csv to markdown table 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =