Code Monkey home page Code Monkey logo

git_command_1's Introduction

GitHub_Command_1

1. initilized as git:   git init
2. show the untracked and tracked file: git status
3. For making tracked file(single file) use the command:    git add test.txt
4. for making tracking all file: git add .

Note: After make sure the files as tracked, all the file are ready to commited

5. for commit: git commit -m "first Commit"
Note: git commit "comment: -m 'first Commit' "
6. Again theck status(Is master / is main): git status
7. For checking commit: git log  (show all information)
                                OR, git log --oneline (show needed information)
8. Back to any commit: git checkout bce3411 index.js
     Note: checkout "commit address" "file name"
9. Check git status: git status
10. Again need to git command; git commit -m "Forth Commit"

Now unstage the git: 11. Entered the required git: git checkout ce3f6e8 index.js

12. Reset the git: git reset index.js

13. Further check the git status: git status

14. Back to previous version: git checkout -- index.js

15. Further check the git status to ensure: git status

git_command_1's People

Contributors

imdadulhaque1 avatar

Watchers

James Cloos avatar  avatar

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.