Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to add an existing project to github

# Go into your existing directory and run below commands
cd docker-spring-boot
echo "# docker-spring-boot" >> README.md
git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master
                

Comment

how to push a project to github

#How to push a repo to an existing
  git init
  git add .
  git config --global user.email "<your-github-email>" && git config --global user.name "<your-githb-username>"
  git commit -m "<>"
  git remote add origin <repohttps>
  git remote -v //to confirm
  git branch main master -f && git checkout main //'do this if gits default branch is master'
  git push origin main -f
Comment

how to add your project to github

git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master
                
Comment

add project to github

cd docker-spring-boot
echo "# docker-spring-boot" >> README.md
git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master
Comment

PREVIOUS NEXT
Code Example
Shell :: how to upgrade package yarn global 
Shell :: COPY failed: file not found in build context or excluded by .dockerignore: stat package.json: file does not exist 
Shell :: change directory in git bash 
Shell :: grep output to file 
Shell :: extract a tar.xz in linux 
Shell :: clone code -lr 
Shell :: pyaudio windows fail 
Shell :: internet not working on centos 8 on linux 
Shell :: remove version from cocoapods 
Shell :: git push f head 
Shell :: ubuntu chang host name 
Shell :: Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted 
Shell :: grep last instance 
Shell :: push only one commit git 
Shell :: powershell redirect output to null 
Shell :: open cmd in current directory 
Shell :: cpoying data in batch 
Shell :: create new users and add them in group in linux 
Shell :: sshkeygen 
Shell :: bash array append 
Shell :: execute previous command linux 
Shell :: Download and install minikube 
Shell :: homebrew without sudo mac 
Shell :: du folder size 
Shell :: cat: /var/jenkins_home/secrets/initialAdminPassword: No such file or directory 
Shell :: start nginx in terminal 
Shell :: switch user ubuntu 
Shell :: install jupyter 
Shell :: how to run .bashrc from .zshrc 
Shell :: find file modified in last minutes 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =