Code Monkey home page Code Monkey logo

stressgit's Introduction

Git Commands

To Clone Repository:

git clone https://github.com/himanshudhami/StressGit.git

To switch to other branch:

git checkout –b <branch>

To check any modifications in local repository:

git status

Incase local repository is behind remote repository then pull the code first and then push changes.

Cmd:   git  pull <remote> <branch>
       git push
Eg:    git pull https://github.com/himanshudhami/StressGit.git  bindup
	   git  push

Commit files without entering commit message will prompt a window for entering commit message. To close the window, follow the below steps:

•	enter your message following the presented guidelines
•	press Esc to make sure you are out of the insert mode
•	then type :wqEnter or ZZ.

If the same file is modified by others and others changes were already pushed in to remote repository:

a.	pull latest changes:
	git pull https://github.com/himanshudhami/StressGit.git bindup
b.	push changes
	git push

To compare local repository with remote repository:

git diff bindup origin/bindup

If the same file and word is modified by others and others changes were already pushed in to remote repository:

a.	Use “git mergetool” command to resolve conflicts. 
b.	git commit –m “message”
c.	git push

To Create Pull Request:

go to https://github.com and create new pull request
after creating pull request, it can be assigned to individuals for review and merge
merge branch to other branch can also be done in git hub website

To reset the working directory to the state of your last commit

git reset --hard

To stash changes, run:

git stash

To apply a stash and remove it from the stash list, run:

git stash pop stash@{n}

To apply a stash and keep it in the stash cache, run:

git stash apply stash@{n}

stressgit's People

Contributors

himanshudhami avatar basudevsahu avatar shyamsunderkumar avatar ushakumari avatar priyanaik avatar bindup avatar

Watchers

 avatar James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar Sahana avatar Sambaran Roy avatar  avatar  avatar Ankit avatar Udayachandra avatar veerabhadra avatar Nagendra Dwarakinath avatar Amit Vishwakarma avatar

stressgit's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.