Learning git and github for beginners

in #programming8 years ago

git-logo.png

Source

We can work alone or as a team in a projects.The same team members may have to work with the same file.In such cases, the changes made by the team members may conflict with what other team members have done.As a version control system, my workflow grows. The changes made are combined so that they do not come into conflict.It is also possible to save changes made as a version.

We will review the Git manual for this article which will show off for beginners.

Create a User Account

Firstly we open an account on Github We create username, email address and password.

Screenshot_3.png

Then we log into the account we created.

Screenshot_1.png

Create a new repository

Repository; The code we create is called the field we store.To create a new repository, we click on the + icon in the upper right corner.

Screenshot_2.png

We enter the name of the repository. If we want the public to view it according to the status of the project, we set it private if we want it to be displayed by certain people.

Screenshot_4.png

The view of the repository we created is similar to the following. You need to download the GitHub Desktop software to download the copy of the repository that we created in our own computer. After downloading the program, we click on Set up in Desktop button.

Screenshot_6.png

In order to run the terminal screen on our computer with windows operating system,we download the appropriate version

Link

When we type in the git to terminal screen command and press Enter, we get a screen that lists some of the commands used and what they mean.

Screenshot_7.png

mkdir deneme

If we run the command, we will create a folder named deneme.

Screenshot_8.png

cd deneme

command go to the deneme directory.

Screenshot_9.png

echo "#deneme" >> README.md

With this command we create a read me file into the deneme repository.

Screenshot_10.png

cat README.md

The command shows in the README.md file.

Screenshot_11.png

git init

The command tells my computer that the deneme directory is being used by Git.

Screenshot_12.png

git add README.md

We made sure that the changes to be done with the command are followed.

Screenshot_13.png

Make a commit

After we created the file, we introduced it to Git and then it was time to commit the changes to the repository. We will make it easier to follow the version if we do not commit any changes we have made. We do not forget to write every commit "Delivery message" section. The message part here will help us to remember what we are doing in that commit. It will allow us to see what changes we have made while reviewing the commitments we have made in the past.

git commit -m "first commit"

Screenshot_14.png

Connect your GitHub repo with your computer

Our command to pair our computer with github git remote add origin https://github.com/<user_name>/deneme.git

This command allows you to create a remote repository on git and interact with the repository in Github. You can write anything instead of the original.We made a copy of our repository and we connected the github with the remote warehouse.

Screenshot_15.png

We need to log into our Github account after running git push -u origin master command to send the changes in the head of our local repository to the remote repository.

Screenshot_16.png

The final state of the terminal will be as follows.

Screenshot_17.png

Finally, we go to our repository. When we created the repository and connected my computer, we uploaded the repository file named " We see it is happening successfully.

Screenshot_18.png

follot-resteem-upvote.gif

Sort:  

Nice work! Everybody should be able to at least use the basics off git nowadays! Thanks for taking the effort!

It is a pleasure for me.Thank you @michelmake

Çok yararlı ve bilgili bir paylaşım olmuş teşekkür ederim paylaşım için :)

rica ederim.

You got a 1.65% upvote from @upmewhale courtesy of @osmania!

This post has received a 0.99% upvote from thanks to: @osmania.
For more information, click here!!!!
Send minimum 0.010 SBD|STEEM to bid for votes.


Do you know, you can also earn daily passive income simply by delegating your Steem Power to @minnowhelper by clicking following links: 10SP, 100SP, 500SP, 1000SP or Another amount

Harikasın kardeşim eline sağlık 👍🏼👏🏼

Eyvallah kardeşim

çok faydalı olacak. teşekkürler.