GithubHelp home page GithubHelp logo

gituseful's Introduction

Git {brackets show git commands, take them out when typing into Git}:

set username and email to ALL of your actions: $ git config --global user.name "Your Name" $ git config --global user.email "[email protected]"

Creating and editing readme md file: $ cat > README.md to edit text. $cat >> README.md to append text type in stuff, then CTRL+D to save and close alternatively $ touch README.md creates an empty file $cat README.md to read the file $ git add README.md $ git commit README.md -m "This is my commit message"

  • Create new repo in Github website. To avoid errors, do not initialize the new repository with README, license, or gitignore files.
  • Create repo: Navigate to folder using bash with {cd }
  • Set current path as repo using {git init}
  • Add the files in your new local repository. This stages them for the first commit. {git add .}
  • Commit the files that you've staged in your local repository. {git commit -m "First commit"}
  • On the Webpage of Git repository, copy the .git path under code e.g. https://github.com/bertagnolli/repo.git
  • In the Command prompt, add the URL for the remote repository where your local repository will be pushed. {git remote add origin }
  • Verifies the new remote URL is correct {git remote -v}
  • Push the changes in your local repository to GitHub. {git push origin master}

If there's already stuff in repo it might complain saying "Updates were rejected because the remote contains work that you do not have locally". You can force a push with {git push -f origin master} WARNING: THIS WILL FORCE AN OVERWRITE TO ALL EXISTING FILES IN REPO

Workaround Vivado blocking Git push: error 403, xilinx-xhub-users-g1 I have found one workaround to this problem. I had the git credential.helper set to store. I was able to disable that by going into my cloned github repository and typing this command. {git config credential.helper ""} I had to run it in each repo but maybe it is possible to use a --system or --global option to apply the change for all cloned repos.

gituseful's People

Contributors

bertagnolli avatar

Watchers

 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.