Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #add #file #git
ADD COMMENT
Topic
Name
3+6 =