Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you are going to upload your project folder this is from starting stepwise.
- 1) Go to github and create a new repo
- 2) copy the "clone with HTTPS" link"
- (now i think you should run git init to create .gitignore file but I'll tell it
- how to do in another way)
- 3) cd to your project folder and run :
- => git clone <link>
- 4) always do git pull first
- => git pull
- 5) now to create .gitignore (ONLY if not created automatically) which ignores the foler mentioned in that file,
- we use the following code to ignore node_modules files (you need to ignore your
- specific big files according to your project)
- =>touch .gitignore && echo "node_modules/" >> .gitignore && git rm -r --cached node_modules ; git status
- 6) then run =>git status to check any warnings
- 7) then do
- =>git add .
- (you may git warnings-> LF to CRLF conversion , check on the net,
- I had previoulsy got those warnings when I did git add . before I added .gitignore
- but after adding idk how the warnings resolved)
- 8) then just check for git status
- 9) continue with
- =>git commit -m "<description>"
- =>git push
- 10) Run git status whenever you want to ckeck what's going on.
- 11) done
- ______________________
- to update the changes made to the files,run
- git add .
- git commit -m"description"
- git push
Add Comment
Please, Sign In to add comment