-
-
Save manashcse11/4a0fdb4f2e2f444d767479a63f0ef09a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---- Existing project add in a new repo -------------// | |
go to project folder | |
git init | |
git add folder/file | |
git commit -m "init" | |
git remote add origin repo_url | |
git push -u origin master | |
#---- gitignore for already added file/directory: -------------// | |
Create .gitignore file and put directory/file there | |
for example node_modules/ | |
Then run below cammand | |
git rm -r --cached . | |
git add . | |
git commit -m "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment