Upload Go project to GitHub Repository2019 Community Moderator ElectionHow can I remove a commit on GitHub?Pull new updates from original GitHub repository into forked GitHub repositoryHow can I determine the URL that a local Git repository was originally cloned from?Is there a way to skip password typing when using https:// on GitHub?How do I update a GitHub forked repository?Can I arrange repositories into folders on Github?Add images to README.md on GitHubPush existing project into GithubCreate a tag in a GitHub repositoryCan you get the number of lines of code from a GitHub repository?

Why is participating in the European Parliamentary elections used as a threat?

Print last inputted byte

What is the difference between something being completely legal and being completely decriminalized?

Imaginary part of expression too difficult to calculate

What (if any) is the reason to buy in small local stores?

Why are there no stars visible in cislunar space?

How to test the sharpness of a knife?

When should a starting writer get his own webpage?

Does the Shadow Magic sorcerer's Eyes of the Dark feature work on all Darkness spells or just his/her own?

I got the following comment from a reputed math journal. What does it mean?

Are hand made posters acceptable in Academia?

Could any one tell what PN is this Chip? Thanks~

Symbolism of 18 Journeyers

Why is "la Gestapo" feminine?

Is xar preinstalled on macOS?

PTIJ: Why do we make a Lulav holder?

If I cast the Enlarge/Reduce spell on an arrow, what weapon could it count as?

Homology of the fiber

Knife as defense against stray dogs

Would mining huge amounts of resources on the Moon change its orbit?

What are the consequences of changing the number of hours in a day?

How do you justify more code being written by following clean code practices?

Determine voltage drop over 10G resistors with cheap multimeter

How to read string as hex number in bash?



Upload Go project to GitHub Repository



2019 Community Moderator ElectionHow can I remove a commit on GitHub?Pull new updates from original GitHub repository into forked GitHub repositoryHow can I determine the URL that a local Git repository was originally cloned from?Is there a way to skip password typing when using https:// on GitHub?How do I update a GitHub forked repository?Can I arrange repositories into folders on Github?Add images to README.md on GitHubPush existing project into GithubCreate a tag in a GitHub repositoryCan you get the number of lines of code from a GitHub repository?










-4















How can i successfully upload my Go project to existing github repository? Here is how my $GOPATH looks like: /home/user/go.



There I have created the following directories: src/github.com/StefanCepa/ . And inside that directory I have 2x directories which represent two different projects. I would like each of those projects to be posted on seperate github repository.



Any ideas how can I do that? Commiting stuff written in Go on github is kinda confusing to me.










share|improve this question



















  • 5





    Create a repo on Github for each of the directories. Github shows instructions for the next steps after you create the repo. The process for creating a repo containing Go code is the same as the process for a repo containing code written in any language.

    – Cerise Limón
    Mar 6 at 23:56







  • 1





    "Commiting stuff written in Go on github is kinda confusing to me" - then forget it's written in Go, because it's irrelevant. It's just files. Create a repo and commit the files.

    – Adrian
    Mar 7 at 14:23















-4















How can i successfully upload my Go project to existing github repository? Here is how my $GOPATH looks like: /home/user/go.



There I have created the following directories: src/github.com/StefanCepa/ . And inside that directory I have 2x directories which represent two different projects. I would like each of those projects to be posted on seperate github repository.



Any ideas how can I do that? Commiting stuff written in Go on github is kinda confusing to me.










share|improve this question



















  • 5





    Create a repo on Github for each of the directories. Github shows instructions for the next steps after you create the repo. The process for creating a repo containing Go code is the same as the process for a repo containing code written in any language.

    – Cerise Limón
    Mar 6 at 23:56







  • 1





    "Commiting stuff written in Go on github is kinda confusing to me" - then forget it's written in Go, because it's irrelevant. It's just files. Create a repo and commit the files.

    – Adrian
    Mar 7 at 14:23













-4












-4








-4








How can i successfully upload my Go project to existing github repository? Here is how my $GOPATH looks like: /home/user/go.



There I have created the following directories: src/github.com/StefanCepa/ . And inside that directory I have 2x directories which represent two different projects. I would like each of those projects to be posted on seperate github repository.



Any ideas how can I do that? Commiting stuff written in Go on github is kinda confusing to me.










share|improve this question
















How can i successfully upload my Go project to existing github repository? Here is how my $GOPATH looks like: /home/user/go.



There I have created the following directories: src/github.com/StefanCepa/ . And inside that directory I have 2x directories which represent two different projects. I would like each of those projects to be posted on seperate github repository.



Any ideas how can I do that? Commiting stuff written in Go on github is kinda confusing to me.







go github






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 6:40









Flimzy

39.8k136699




39.8k136699










asked Mar 6 at 23:38









Stefan RadonjicStefan Radonjic

11914




11914







  • 5





    Create a repo on Github for each of the directories. Github shows instructions for the next steps after you create the repo. The process for creating a repo containing Go code is the same as the process for a repo containing code written in any language.

    – Cerise Limón
    Mar 6 at 23:56







  • 1





    "Commiting stuff written in Go on github is kinda confusing to me" - then forget it's written in Go, because it's irrelevant. It's just files. Create a repo and commit the files.

    – Adrian
    Mar 7 at 14:23












  • 5





    Create a repo on Github for each of the directories. Github shows instructions for the next steps after you create the repo. The process for creating a repo containing Go code is the same as the process for a repo containing code written in any language.

    – Cerise Limón
    Mar 6 at 23:56







  • 1





    "Commiting stuff written in Go on github is kinda confusing to me" - then forget it's written in Go, because it's irrelevant. It's just files. Create a repo and commit the files.

    – Adrian
    Mar 7 at 14:23







5




5





Create a repo on Github for each of the directories. Github shows instructions for the next steps after you create the repo. The process for creating a repo containing Go code is the same as the process for a repo containing code written in any language.

– Cerise Limón
Mar 6 at 23:56






Create a repo on Github for each of the directories. Github shows instructions for the next steps after you create the repo. The process for creating a repo containing Go code is the same as the process for a repo containing code written in any language.

– Cerise Limón
Mar 6 at 23:56





1




1





"Commiting stuff written in Go on github is kinda confusing to me" - then forget it's written in Go, because it's irrelevant. It's just files. Create a repo and commit the files.

– Adrian
Mar 7 at 14:23





"Commiting stuff written in Go on github is kinda confusing to me" - then forget it's written in Go, because it's irrelevant. It's just files. Create a repo and commit the files.

– Adrian
Mar 7 at 14:23












1 Answer
1






active

oldest

votes


















5














This is done the same way that you would initialize and commit a new repository regardless of the language.



Go just makes it a little easier to find your other Go projects thanks to the $GOPATH and the standards of the language. Simple example below.



Within project 1:



$ cd ~/go/src/github.com/StefanCepa/projectOne/
$ git init
$ git add .
$ git commit -m 'init'
$ git remote add origin https://github.com/StefanCepa/projectOne.git
$ git push -u origin master


Within project 2:



*same process as above






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033890%2fupload-go-project-to-github-repository%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    This is done the same way that you would initialize and commit a new repository regardless of the language.



    Go just makes it a little easier to find your other Go projects thanks to the $GOPATH and the standards of the language. Simple example below.



    Within project 1:



    $ cd ~/go/src/github.com/StefanCepa/projectOne/
    $ git init
    $ git add .
    $ git commit -m 'init'
    $ git remote add origin https://github.com/StefanCepa/projectOne.git
    $ git push -u origin master


    Within project 2:



    *same process as above






    share|improve this answer





























      5














      This is done the same way that you would initialize and commit a new repository regardless of the language.



      Go just makes it a little easier to find your other Go projects thanks to the $GOPATH and the standards of the language. Simple example below.



      Within project 1:



      $ cd ~/go/src/github.com/StefanCepa/projectOne/
      $ git init
      $ git add .
      $ git commit -m 'init'
      $ git remote add origin https://github.com/StefanCepa/projectOne.git
      $ git push -u origin master


      Within project 2:



      *same process as above






      share|improve this answer



























        5












        5








        5







        This is done the same way that you would initialize and commit a new repository regardless of the language.



        Go just makes it a little easier to find your other Go projects thanks to the $GOPATH and the standards of the language. Simple example below.



        Within project 1:



        $ cd ~/go/src/github.com/StefanCepa/projectOne/
        $ git init
        $ git add .
        $ git commit -m 'init'
        $ git remote add origin https://github.com/StefanCepa/projectOne.git
        $ git push -u origin master


        Within project 2:



        *same process as above






        share|improve this answer















        This is done the same way that you would initialize and commit a new repository regardless of the language.



        Go just makes it a little easier to find your other Go projects thanks to the $GOPATH and the standards of the language. Simple example below.



        Within project 1:



        $ cd ~/go/src/github.com/StefanCepa/projectOne/
        $ git init
        $ git add .
        $ git commit -m 'init'
        $ git remote add origin https://github.com/StefanCepa/projectOne.git
        $ git push -u origin master


        Within project 2:



        *same process as above







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 7 at 6:40









        Flimzy

        39.8k136699




        39.8k136699










        answered Mar 6 at 23:58









        waymobettawaymobetta

        569515




        569515





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033890%2fupload-go-project-to-github-repository%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

            Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

            Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved