Artificial Intelligence Blogs Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
Trupti81
Explorer
0 Likes
126

Introduction:

Git is a decentralized version control system, which assists developers to follow the evolution of their code and cooperate effectively with other developers. It runs on a series of basic instructions like git init, git add, git commit, and git push that enables the user to manipulate versions of his or her code. With such commands, developers are able to have a full history of changes, work on multiple branches, and merge updates without any problems.

Body:

To create repository and sync it with Visual Studio , Please refer my blog https://community.sap.com/t5/artificial-intelligence-blogs-posts/ai-steps-to-setup-python-programmin...

Open a new terminal in VS code

Trupti81_0-1777679331786.png

Create Python1.py in VsCode

Trupti81_1-1777679352516.png

Get into your repository folder. 

cd {fodlername}

Trupti81_2-1777679352516.png

List all items with “”

git status

Add my folders into local repository

git add *

Trupti81_3-1777679352516.png

Commit the changes to Git staging area

Git commit -m {Tag}

Trupti81_4-1777679352516.png

Cross check with Github repository. Nothing added

Trupti81_5-1777679395476.png

 

 

Move from staging area to Github repository

git push

Trupti81_6-1777679395476.png

Content added to Github repository

Trupti81_7-1777679395476.png

 

Trupti81_8-1777679395476.png

Remove file

git rm {filename}

Trupti81_9-1777679395476.png

Trupti81_10-1777679395476.png

Changes staged 

git commit -m {Tag}

Trupti81_11-1777679395476.png

Move to Github repository

git push

Trupti81_12-1777679395476.png

 

Trupti81_13-1777679395476.png

Empty folder not shown in Git

Summary:

Git is the distributed version control program which helps trace the alterations in the code and allows effective co-operation of the developers. It has easy to use commands to govern versions, maintain history, and allow easy branching and merging.