Indrajeet Gour
Indrajeet Gour

Reputation: 4500

first time check in my pycharm project to Git

I have written whole code before cloning any repo, now I decided to push entire code into new repo directly from pycharm IDE.

Do anyone know how to do that.

Upvotes: 0

Views: 946

Answers (2)

Dmitrii Smirnov
Dmitrii Smirnov

Reputation: 7538

If you want to push the project to GitHub, just use VCS - Import into Version control - Share on GitHub.

If you want to push somewhere else, then:

  1. Use VCS - Enable VCS integration. If there is no git repository in the project, IDE will create one.
  2. Mark all files you need, add them to git and commit
  3. Add a remote using VCS - Git - Remotes
  4. Push (VCS - Git - Push, or Ctrl+Shift+K)

Upvotes: 5

ratan
ratan

Reputation: 1

  1. first check your remote by git remote -v
  2. add remote of new repo while creating repo you will get. git remote add origin
  3. git init
  4. git add .
  5. git commit -m "first initialize"
  6. git push origin master

Upvotes: -1

Related Questions