Git Product home page Git Product logo

dumdum's Introduction

dumdum

Another trial repo. Initialized locally & pushed to a remote location like GitHub.

  • remote means somewhere else, not on this computer.

  • git init

path-to-repo\dumdum
λ git init
Initialized empty Git repository in path-to-repo/dumdum/.git/
  • git remote add origin https://github.com/mahi397/dumdum.git
    We use this to add a reference to a remote repository on GitHub.

  • git remote -v
    Shows any remote repositories that I've connected to this repo.

path-to-repo\dumdum (master -> origin)
λ git remote -v
origin  https://github.com/mahi397/dumdum.git (fetch)
origin  https://github.com/mahi397/dumdum.git (push)
  • git push origin master
    To push changes to the remote repo.

  • git push -u origin master
    To set "upstream", meaning this is where I want to push it by default. So in future, "git push" will suffice.

path-to-repo\dumdum (master -> origin)                        
λ git push -u origin master                                          
Enumerating objects: 9, done.                                        
Counting objects: 100% (9/9), done.                                  
Delta compression using up to 4 threads                              
Compressing objects: 100% (5/5), done.                               
Writing objects: 100% (9/9), 985 bytes | 328.00 KiB/s, done.         
Total 9 (delta 1), reused 0 (delta 0)                                
remote: Resolving deltas: 100% (1/1), done.                          
To https://github.com/mahi397/dumdum.git                             
 * [new branch]      master -> master                                
Branch 'master' set up to track remote branch 'master' from 'origin'.
  • Now git push can suffice:
path-to-repo\dumdum (master -> origin)
λ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 877 bytes | 292.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/mahi397/dumdum.git
   a22b10d..cf31e29  master -> master

dumdum's People

Contributors

mahi397 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.