Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git push example

#Just follow next steps in console terminal ;)
git init	#Initialize git in folder
git add .	#add all files of folder to be pushed
git commit -m "First commit"	#add first commit
git remote add origin remote_repository_URL #replace with your remote repo url
git remote -v	#verify that your remote repository url is properly found
git push --force origin master	#force pushing your project into github repo
Comment

Git Code Push

git remote add origin https://github.com/shmahee/Marvel.git
git branch -M main
git push -u origin main
Comment

git push example

echo "Project_name_and_details" >> README.md
git init
git add README.md
git add /path/to/file #folders or files you want to add
git commit -m "first commit"
git branch -M main #Use if you dont want to use the master branch
git remote add origin https://github.com/username/project.git
git remote -v #Always good to check
git push -u origin main 
Comment

git push commands

 git init

2. git add .

3. git status

4. git commit -m 'your message'

5. git remote add origin 'your_url_name' 

6. git push -u origin master //then login w/ your creds
Comment

how to push git

# its not master anymore, its main

git push -u origin main //then login w/ your creds
Comment

git push command

git add .
git commit -m "your message"
git push
Comment

PREVIOUS NEXT
Code Example
Shell :: set java_home permanently ubuntu 
Shell :: search git 
Shell :: how to run a command on startup in linux ubuntu or centos 
Shell :: how to run verilog files in linux 
Shell :: ubuntu terminal network monitor 
Shell :: ansible choose host file 
Shell :: git bad object refs/heads/ 
Shell :: sudo apt uninstall 
Shell :: ubuntu 20 lts install node 10 
Shell :: edit branch name git 
Shell :: how to install pygame 
Shell :: how to find ip adress of a web side kali linux 
Shell :: Kali free ports 
Shell :: list all running processes linux 
Shell :: find files in windows command 
Shell :: shell script to count number of lines in a file 
Shell :: change remote origin to fork 
Shell :: install openvino 
Shell :: docker compose plugin 
Shell :: grep count lines 
Shell :: concatenate strings batch 
Shell :: scp folder recursive 
Shell :: linux get full path 
Shell :: navigate to a directory linux 
Shell :: ords version view 
Shell :: intel driver arch linux 
Shell :: nvm use globally 
Shell :: how to shutdown computer using linux 
Shell :: snap install slack 
Shell :: mac install sklearn 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =