{"comment":{"url":"https://api.github.com/repos/Doskhan/Doskhan/comments/18093322","html_url":"https://github.com/Doskhan/Doskhan/commit/dfada82127548a44b0555c24be08b61bb44a9853#commitcomment-18093322","id":18093322,"user":{"login":"Doskhan","id":19476253,"avatar_url":"https://avatars.githubusercontent.com/u/19476253?v=3","gravatar_id":"","url":"https://api.github.com/users/Doskhan","html_url":"https://github.com/Doskhan","followers_url":"https://api.github.com/users/Doskhan/followers","following_url":"https://api.github.com/users/Doskhan/following{/other_user}","gists_url":"https://api.github.com/users/Doskhan/gists{/gist_id}","starred_url":"https://api.github.com/users/Doskhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doskhan/subscriptions","organizations_url":"https://api.github.com/users/Doskhan/orgs","repos_url":"https://api.github.com/users/Doskhan/repos","events_url":"https://api.github.com/users/Doskhan/events{/privacy}","received_events_url":"https://api.github.com/users/Doskhan/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"dfada82127548a44b0555c24be08b61bb44a9853","created_at":"2016-07-01T10:01:24Z","updated_at":"2016-07-01T10:01:24Z","body":"#July 1\r\n\r\n\r\nToday I have learned a lot about git.\r\n\r\n**Git** allows groups of people to work on the same documents (often code) at the same time, and without stepping on each other's toes. It's a distributed version control system.\r\n\r\n\r\n'git status' command to see what the current state of our project is:\r\n\r\nadd it to the staging area by using 'git add'.\r\n\r\nTo store our staged changes we run the 'commit' command with a message describing what we've changed\r\n\r\n'git log' as a journal that remembers all the changes we've committed so far, in the order we committed them. \r\n\r\nThis command takes a remote name and a repository URL, which in your case is https://github.com/try-git/try_git.git.\r\n\r\nThe __name__ of our remote is 'origin' and the __default local branch name__ is master. The '-u' tells Git to remember the parameters, so that next time we can simply run 'git push' and Git will know what to do. \r\n\r\n'git diff' command look at what is different from our last commit\r\n\r\nIn this case we want the diff of our most recent commit, which we can refer to using the HEAD pointer.\r\n\r\n'git diff' with the --staged option to see the changes you just staged. \r\n\r\nYou can unstage files by using the 'git reset' command\r\n\r\nFiles can be changed back to how they were at the last commit by using the command: 'git checkout -- <target>'.\r\n\r\nusing the 'git rm' command which will not only remove the actual files from disk, but will also stage the removal of the files for us.\r\n\r\n'git merge' merge your changes\r\n\r\nYou can use 'git branch -d <branch name>' to delete a branch."}}
{"actor":{"display_login":"Doskhan"}}