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

            1928 у кіно

            Захаров Федір Захарович

            Ель Греко