Posts

Showing posts from May, 2017

Git -For beignner (Tutorial) -- Conclusion

Image
Git- Merge your PULL request 1) Click "Merge pull request" 2) Confirm Merge 3) Delete branch, as merge has incorporated the changes. 4) Verify there is no more branches

Git -For beignner (Tutorial) -- Part4

Image
Git- Pull Request 1) Click Pull Request, new page with PULL request 2) Select new branch created 3)Look for the changes done 4) Create new PULL request 5) Give pull request a title and write brief

Git -For beignner (Tutorial) -- Part3

Image
Git Checkout To delete the git branch, can do following : [rprasad@vm hello-world]$ git checkout master Switched to branch 'master' [rprasad@vm hello-world]$ git branch * master   test [rprasad@vm hello-world]$ git branch -D test Deleted branch test (was 86fab07). [rprasad@vm hello-world]$ git branch * master [rprasad@vm hello-world]$ Committing File: [rprasad@vm hello-world]$ git commit README.md [test e8c727b] testing  Committer: RAJESH PRASAD <rprasad@vm.localhost> Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:     git config --global user.name "Your Name"     git config --global user.email you@example.com After doing this, you may fix the identity used for this commit with:     git commit --amend --reset-author  1 file changed, 4 inser...

Git -For beignner (Tutorial) -- Part2

Git- Branching: What is branching? Branching is the way to work on different versions of a repository at one time. By default your repository has one branch named master which is considered to be the definitive branch. We use branches to experiment and make edits before committing them to master. To create a new branch 1.        Go to your new repository hello-world. 2.   [rprasad@vm git-repos]$ cd hello-world/ 3.     2.        Do the checkout 3.   [rprasad@vm hello-world]$ git checkout -b test 4.   Switched to a new branch 'test' 5.     3.        Run git status , to check where you are: 4.   [rprasad@vm hello-world]$ git status 5.   # On branch test 6.   nothing to commit, working directory clean 7.     4.        Check the branch details 5.   [rprasad@vm hello...

Git -For beignner (Tutorial) -- Part1

Image
To complete this tutorial, you need a  GitHub.com account  and Internet access.  1.    Create a free Github account: 2.    Login to Github 3.    Create an Repository A repository is usually used to organize a single project. Repositories can contain folders and files, images, videos, spreadsheets, and data sets – anything your project needs. 4.    We will create hello-world 5.    Github will provide the copy-paste url for cloning repository. We will try to clone to our linux platform and use it from there. [rprasad@vm ~]$ mkdir git-repos [rprasad@vm ~]$ cd git-repos/ [rprasad@vm git-repos]$ git clone https://github.com/rajeshp2408/hello-world.git        Cloning into 'hello-world'... remote: Counting objects: 3, done. Unpacking objects: 100% (3/3), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 [rprasad@vm git-repos]$ ls hello-...