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

Upload Project To Github Repo

Go into the project you want to upload then enter the commands below one by one
Make sure not to forget the .git at the end
You need to create a personal access token via your github profile
git add . can take a while to load depending on what you are uploading: this is normal


git init
git add .
git commit -m "first commit"
git remote add origin  https://github.com/<your-github-user-name>/<your-project-name>.git
git push -f https://<your-personal-access-token>@github.com>//<your-github-user-name>/<your-project-name>.git
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 :: grep --include 
Shell :: git push username password 
Shell :: how to install slack in ubuntu 
Shell :: What should you run to modify your last commit? 
Shell :: remove .svn recursively linux 
Shell :: apartheid linux 
Shell :: stop a process running on a port 
Shell :: how to update ubuntu 
Shell :: git delete multiple branch local 
Shell :: install ionic cli specific version 
Shell :: git push repo 
Shell :: scp download file 
Shell :: bash read file line by line with spaces 
Shell :: install code . path in mac 
Shell :: how to know which shell is specified for linux 
Shell :: add role to node kubernetes 
Shell :: windows docker update clock 
Shell :: choco install npm 
Shell :: How to install tensorflow-gpu in ubuntu and Linux 
Shell :: how to install ddos on ubuntu 
Shell :: apt remove 
Shell :: dynamodb local how to delete table 
Shell :: less command 
Shell :: install netcdf4 
Shell :: docker active log 
Shell :: freebsd add user 
Shell :: connecting sublime to bash command line 
Shell :: nvm install ubuntu 
Shell :: best audio visualiser for linux 
Shell :: make mp4 smaller using ffmpeg 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =