Learning git and github for beginners by osmania

View this thread on steempeak.com
· @osmania ·
$2.13
Learning git and github for beginners
![git-logo.png](https://steemitimages.com/DQmbRhEtxUaTu3PYNsFbapaznFu1qZyw3xH4uGH7TitXt6Q/git-logo.png)


<a href="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Git-logo.svg/2000px-Git-logo.svg.png" rel="nofollow noopener">Source</a>


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  <a href="https://github.com " rel="nofollow noopener">Github</a> We create username, email address and password.

![Screenshot_3.png](https://steemitimages.com/DQmWrUVFeei8oB4KuCL1V5HymFYWubpAW5J73nzSLZaQYsY/Screenshot_3.png)

Then we log into the account we created.

![Screenshot_1.png](https://steemitimages.com/DQmc9iQa2Jpw9sAfd7EoRJNeeZZdiiNjBBv4axRup3A2cwf/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](https://steemitimages.com/DQmZhLnrFjoqcbK7XdDUrjGziUujBGJjLsSooC5Jph8UmHe/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](https://steemitimages.com/DQmdJW3CRw3XbQNSqnmW7mGRV839R5h9GHBLyzqbBQjudVu/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](https://steemitimages.com/DQmNSrU6cR4iNx9xvmHsy83WtrvFtPKNCCQ7yAjh7FyhACo/Screenshot_6.png)

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

<a href="https://git-scm.com/download/win" rel="nofollow noopener">Link</a>

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](https://steemitimages.com/DQmaRAtogAsH7LHUoeUxHpQHMG71mChqBNc3gvj5F71FhGm/Screenshot_7.png)


**mkdir deneme**

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

![Screenshot_8.png](https://steemitimages.com/DQmPKurWpZsMVR2m3tdxsCTb5LLZvS9ppMuZvXNV9NEPhdZ/Screenshot_8.png)


**cd deneme**


command go to the deneme directory.

![Screenshot_9.png](https://steemitimages.com/DQmcFtiCCmNSRVouocmf8o3F8bSqghmmXzd22G6kvspr1c5/Screenshot_9.png)

**echo "#deneme" >> README.md**

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

![Screenshot_10.png](https://steemitimages.com/DQmYKfzGw7nxth5GSobpF3pmuhJ7wNC65qoJpg1eFTE6Dh1/Screenshot_10.png)


**cat README.md**

The command shows in the README.md file.

![Screenshot_11.png](https://steemitimages.com/DQmZQNRpxcXx8THfs4wTpRRZkJueQ5uV1Q6PBqPL3f9yNMC/Screenshot_11.png)

**git init**

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

![Screenshot_12.png](https://steemitimages.com/DQmXo7A9x8BpXygzs6U3mZYomZVC11tDVFw1mdpCw8Ai8ur/Screenshot_12.png)

**git add README.md**

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

![Screenshot_13.png](https://steemitimages.com/DQmbGnfDpTF6LtRPpBqQzZeqqanHgkbVtyq1GD4WDnSXvgn/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](https://steemitimages.com/DQmV7Q4G3ZnEN2hmdkTkBUjYYNbx1hM9YE4w82NYEKKThaE/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](https://steemitimages.com/DQmSzdpu9iiK2ZL7U2zR2K6Pe88TgUq8sU8nGkzJVVxJHiv/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](https://steemitimages.com/DQmeCEyfpTLcqCQk79XFj85A78sEf5BxzrzPRUpa6ekusW5/Screenshot_16.png)

The final state of the terminal will be as follows.

![Screenshot_17.png](https://steemitimages.com/DQmfXuXedW2C7tSy59Efza6mC8PzLFzma59j5U11Q8Gytz8/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](https://steemitimages.com/DQmSSbxgUZDeGkZaMq5KFD4MsbsyvKY8zLKh3xb5gejq3nG/Screenshot_18.png)


<center>![follot-resteem-upvote.gif](https://steemitimages.com/DQmaUNt1gVETZXCNQTMAeQvE48GAa7KHa9cQa3jjgzPnpAq/follot-resteem-upvote.gif)</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id34,085,024
authorosmania
permlinklearning-git-and-github-for-beginners
categoryprogramming
json_metadata"{"app": "steemit/0.1", "format": "markdown", "links": ["https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Git-logo.svg/2000px-Git-logo.svg.png", "https://github.com ", "https://git-scm.com/download/win", "https://github.com/&lt;user_name"], "image": ["https://steemitimages.com/DQmbRhEtxUaTu3PYNsFbapaznFu1qZyw3xH4uGH7TitXt6Q/git-logo.png"], "tags": ["programming", "learning", "steemdev", "tutorial"]}"
created2018-02-20 21:12:03
last_update2018-02-20 21:12:03
depth0
children9
net_rshares386,084,565,782
last_payout2018-02-27 21:12:03
cashout_time1969-12-31 23:59:59
total_payout_value1.678 SBD
curator_payout_value0.452 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5,768
author_reputation25,902,002,045,313
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (41)
@shankstaicho ·
Çok yararlı ve bilgili bir paylaşım olmuş teşekkür ederim paylaşım için :)
properties (22)
post_id34,085,415
authorshankstaicho
permlinkre-osmania-learning-git-and-github-for-beginners-20180220t211415193z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2018-02-20 21:14:15
last_update2018-02-20 21:14:15
depth1
children1
net_rshares0
last_payout2018-02-27 21:14:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length74
author_reputation14,417,464,439,057
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@osmania ·
rica ederim.
properties (22)
post_id34,086,675
authorosmania
permlinkre-shankstaicho-re-osmania-learning-git-and-github-for-beginners-20180220t212158257z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2018-02-20 21:22:00
last_update2018-02-20 21:22:00
depth2
children0
net_rshares0
last_payout2018-02-27 21:22:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length12
author_reputation25,902,002,045,313
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@michelmake ·
Nice work! Everybody should be able to at least use the basics off git nowadays! Thanks for taking the effort!
👍  
properties (23)
post_id34,086,968
authormichelmake
permlinkre-osmania-learning-git-and-github-for-beginners-20180220t212354859z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2018-02-20 21:23:54
last_update2018-02-20 21:23:54
depth1
children1
net_rshares852,550,099
last_payout2018-02-27 21:23:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length110
author_reputation5,783,919,265,069
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@osmania ·
It is a pleasure for me.Thank you @michelmake
properties (22)
post_id34,091,777
authorosmania
permlinkre-michelmake-re-osmania-learning-git-and-github-for-beginners-20180220t215304108z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "users": ["michelmake"], "tags": ["programming"]}"
created2018-02-20 21:53:06
last_update2018-02-20 21:53:06
depth2
children0
net_rshares0
last_payout2018-02-27 21:53:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length45
author_reputation25,902,002,045,313
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@upmewhale ·
re-osmania-learning-git-and-github-for-beginners-20180220t215151842z
You got a 1.65% upvote from @upmewhale courtesy of @osmania!
properties (22)
post_id34,091,576
authorupmewhale
permlinkre-osmania-learning-git-and-github-for-beginners-20180220t215151842z
categoryprogramming
json_metadata"{"app": "postpromoter/1.7.4"}"
created2018-02-20 21:51:51
last_update2018-02-20 21:51:51
depth1
children0
net_rshares0
last_payout2018-02-27 21:51:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length60
author_reputation28,693,120,207,612
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@minnowhelper ·
re-osmania-learning-git-and-github-for-beginners-20180221t000249466z
<p>This post has received a 0.99% upvote from https://steemitimages.com/DQmcZYv2276nr6zEDDTZY1iLcgaBiNqumAnYtmvxNtr5zrW/minnow_klein.png thanks to: @osmania. <br>
For more information, <a href="http://www.minnowhelper.com/index.php">click here!!!</a>!<br> 
<b>Send minimum 0.010 SBD|STEEM to bid for votes.</b> <br></p> <p><br> 
Do you know, you can also earn daily passive income simply by <b>delegating</b> your Steem Power to @minnowhelper by clicking following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowhelper&vesting_shares=10%20SP&redirect_uri=http%3A%2F%2Fminnowhelper.com%2Fdelegate.php">10SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowhelper&vesting_shares=100%20SP&redirect_uri=http%3A%2F%2Fminnowhelper.com%2Fdelegate.php">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowhelper&vesting_shares=500%20SP&redirect_uri=http%3A%2F%2Fminnowhelper.com%2Fdelegate.php">500SP</a>,  <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=minnowhelper&vesting_shares=1000%20SP&redirect_uri=http%3A%2F%2Fminnowhelper.com%2Fdelegate.php">1000SP</a> or <a href="http://www.minnowhelper.com/delegate.php">Another amount</a></p>


properties (22)
post_id34,111,565
authorminnowhelper
permlinkre-osmania-learning-git-and-github-for-beginners-20180221t000249466z
categoryprogramming
json_metadata"{"app": "postpromoter/1.8.6"}"
created2018-02-21 00:02:51
last_update2018-02-21 00:02:51
depth1
children0
net_rshares0
last_payout2018-02-28 00:02:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,319
author_reputation1,659,586,907,437
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@ertugrul ·
Harikasın kardeşim eline sağlık 👍🏼👏🏼
properties (22)
post_id34,145,725
authorertugrul
permlinkre-osmania-learning-git-and-github-for-beginners-20180221t033922516z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2018-02-21 03:39:21
last_update2018-02-21 03:39:21
depth1
children1
net_rshares0
last_payout2018-02-28 03:39:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length36
author_reputation3,122,082,999,467
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@osmania ·
Eyvallah kardeşim
properties (22)
post_id34,157,851
authorosmania
permlinkre-ertugrul-re-osmania-learning-git-and-github-for-beginners-20180221t045336534z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2018-02-21 04:53:39
last_update2018-02-21 04:53:39
depth2
children0
net_rshares0
last_payout2018-02-28 04:53:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length17
author_reputation25,902,002,045,313
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@matematikciemre ·
çok faydalı olacak. teşekkürler.
properties (22)
post_id34,351,302
authormatematikciemre
permlinkre-osmania-learning-git-and-github-for-beginners-20180222t002258908z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2018-02-22 00:23:00
last_update2018-02-22 00:23:00
depth1
children0
net_rshares0
last_payout2018-03-01 00:23:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length32
author_reputation3,734,411,933,886
root_title"Learning git and github for beginners"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000