Hello,
in this article i want to present to you some commands that we need to know in using Git as a versionning system, so first of all i'll give you a definition of Git and what means Git to a developer.
GIT : is a software for managing projects, but on a decentralized basis and online, a group of developers can exchange the different versions of the project, these developers have the ability to change the code for each file but specifying the name of change or "commit". so others can detect the change quickly. It also allows to publish the files of a project on a website.
Some basic commands to understand how the software GIT work :
• git clone : we can use this command to import the files from the website and store them in a directory.
• git add. : this command is used to confirm and add the changes and the modifications that we did on the project.

• git status : this command help us to see the files status and to now is there something not added in the commit that we want to send.

• git log : with this command we can see all the commits added by all the people involved in the project.

• git commit -m 'commit-name' : with using this command we can give a name to change.

• git branch branch-name : with this command we can creates a new branch.
• git checkout bn : we use this command to work in the given branch (bn).
• git merge bn : send files from one branch to the master branch.
• git pull origin : this command give us the possibility to import new changes.
• git push origin bn : to publish the files in the web in the branch (bn) we use this command.

• Touch file-name : we use this command to create a file in the directory


0 comments:
Post a Comment