First of all you need to have git downloaded on your computer. You can download it from here:
After installing it, if you want to check whether the git has been installed or not, simply go to command prompt and type this command git --version
. I just installed it recently and you can see git has been installed on my machine.
The next step is that I created a new repository called PythonGit
.
After that I opened this repository in PyCharm, an IDE for python developer. You just have to click Get from Version Control
and then select Git
from the given options.
You can get the link to enter from here:
Now you can see those 3 files in my github account has been shown into Pycharm:
Initially, there were 0 lines of code in test.py
. Then I added a code to print Floyd's triangle there. Then I clicked this one so that the code I wrote in my pycharm will be pushed into my github.
Now you can see the latest commit was done 1 minute ago. And you can see those lines of code I wrote in pycharm also has been added to test.py
in github.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit