Answers for "manually add file into git repo"

15

git add new files to existing repository

cd existing_folder
git init
git remote add origin https://gitlab.com/abc.git
git add .
git commit -m "Initial commit"
git push -u origin master
Posted by: Guest on August-26-2020
0

how to add a file in git

git init
    git add .      /* . => it is to add all the files */ for all files git add --all
    git commit -m "first_commit"
    git remote add origin https://github.com/yourusername/your-repo-name.git
   
    git push origin master
Posted by: Guest on February-09-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language