Github-1 : Basic Setup
Basic Setup First create a README.md (md = markdown file) from terminal in your git directory Open README.md file in vim ‘vim README.md’. Type text, whatever you want like - ###My first title and exit. Type ‘git status in terminal’. Now, it showing ‘README.md’ as untracked file in red colour. Let’s add it, Type ‘git add README.md’ and enter Now again type, ‘git status’, It show README.md in green colour. Commit/save changes using these command ‘git commit - m “first commit” ‘. Now it’s showing message file change and insert. If it’s first time, it ask for setup account, Run ‘git config —global —edit’, Uncomment name and email. Enter correct email id. Commit this changes, ‘git commit --amend —reset-author’. Tracking different version, what we have to commit. Run command ‘git log’ If you want to go back to previous version. First run ‘git log command’, after that you got version commit id like this - a4ce36a523b99e942ad37906122d3eeb44185dd...
Comments
Post a Comment