{"action":"created","issue":{"url":"https://api.github.com/repos/wilensky/ba-od-idp/issues/2","labels_url":"https://api.github.com/repos/wilensky/ba-od-idp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wilensky/ba-od-idp/issues/2/comments","events_url":"https://api.github.com/repos/wilensky/ba-od-idp/issues/2/events","html_url":"https://github.com/wilensky/ba-od-idp/issues/2","id":119359393,"number":2,"title":"Create your first git commit to the repository","user":{"login":"wilensky","id":8455569,"avatar_url":"https://avatars.githubusercontent.com/u/8455569?v=3","gravatar_id":"","url":"https://api.github.com/users/wilensky","html_url":"https://github.com/wilensky","followers_url":"https://api.github.com/users/wilensky/followers","following_url":"https://api.github.com/users/wilensky/following{/other_user}","gists_url":"https://api.github.com/users/wilensky/gists{/gist_id}","starred_url":"https://api.github.com/users/wilensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilensky/subscriptions","organizations_url":"https://api.github.com/users/wilensky/orgs","repos_url":"https://api.github.com/users/wilensky/repos","events_url":"https://api.github.com/users/wilensky/events{/privacy}","received_events_url":"https://api.github.com/users/wilensky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wilensky/ba-od-idp/labels/homework","name":"homework","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-11-29T13:00:58Z","updated_at":"2015-11-30T12:41:54Z","closed_at":null,"body":"> :grey_exclamation: Read attentively.\r\n> :grey_exclamation: **`$`** in the beginning of command sign **shouldn't be copied**. It is used just for denoting shell command.\r\n> :grey_exclamation: **`{your_username}`** should be **replaced with your github username without curly braces**.\r\n\r\nSo, first of all we should **clone our repository**:\r\nGo to the directory where you would create your project directory. For example, if you want to create your project under `C:\\www\\ba-od-idp` you should run `Git Bash here` in `C:\\www`.\r\nThen clone repository.\r\n```bash\r\n$ git clone https://github.com/wilensky/ba-od-idp.git # this will clone repository right to your machine\r\n```\r\n\r\n---\r\n\r\nAfter cloning the repository we are on `master` branch, but we remember that we should should **create and switch to our own branch**. For this purpose we do:\r\n```bash\r\n$ git checkout -b feature/hello-world_{your_username} # this will create and switch you to the new branch\r\n$ git status # check\r\n```\r\n> :exclamation: Mention **`{your_username}`**. This means that **you should write your own github username instead of it (_without {}_)**.\r\n\r\n---\r\n\r\nThan you should **create your own folder** which **name will be your github username**.\r\n```bash\r\n$ mkdir {your_username} # this will create a folder with name you provide\r\n```\r\n> :exclamation: Don't forget **`{your_username}`**.\r\n\r\n---\r\n\r\nAfter creating your folder, we should create **at least one file** to be able **to commit this folder**.\r\n```bash\r\n$ touch {your_username}/.gitkeep # it will create empty file in your folder\r\n$ git status # check\r\n```\r\n> :exclamation: **`{your_username}`**\r\n> :grey_exclamation: Empty folders can't be commited.\r\n\r\n---\r\n\r\nThen, adding files to the **Index**:\r\n```bash\r\n$ git add * # this will add your new creations to the Index\r\n$ git status # check what changed after we added files to index\r\n```\r\n\r\n---\r\n\r\nFinally we can do our first **commit**:\r\n```bash\r\n$ git commit -m \"Your first commit message!\" # this will commit all that was previously added to index\r\n$ git status # check what changed after commit\r\n```\r\nAnd remember how we check our commit history\r\n```bash\r\n$ git log # this will show you your commits (first commit)\r\n```\r\n---\r\n\r\nThis is it! The most interesting part we will do in the beginning of the lesson."},"comment":{"url":"https://api.github.com/repos/wilensky/ba-od-idp/issues/comments/160618455","html_url":"https://github.com/wilensky/ba-od-idp/issues/2#issuecomment-160618455","issue_url":"https://api.github.com/repos/wilensky/ba-od-idp/issues/2","id":160618455,"user":{"login":"JulySi35","id":16030564,"avatar_url":"https://avatars.githubusercontent.com/u/16030564?v=3","gravatar_id":"","url":"https://api.github.com/users/JulySi35","html_url":"https://github.com/JulySi35","followers_url":"https://api.github.com/users/JulySi35/followers","following_url":"https://api.github.com/users/JulySi35/following{/other_user}","gists_url":"https://api.github.com/users/JulySi35/gists{/gist_id}","starred_url":"https://api.github.com/users/JulySi35/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulySi35/subscriptions","organizations_url":"https://api.github.com/users/JulySi35/orgs","repos_url":"https://api.github.com/users/JulySi35/repos","events_url":"https://api.github.com/users/JulySi35/events{/privacy}","received_events_url":"https://api.github.com/users/JulySi35/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T12:41:53Z","updated_at":"2015-11-30T12:41:53Z","body":"а от чего это зависит ?\r\n"}}