Skip to content

Instantly share code, notes, and snippets.

@manashcse11
Last active August 5, 2017 17:28
Show Gist options
  • Save manashcse11/4a0fdb4f2e2f444d767479a63f0ef09a to your computer and use it in GitHub Desktop.
Save manashcse11/4a0fdb4f2e2f444d767479a63f0ef09a to your computer and use it in GitHub Desktop.
#---- 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