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?

Giving a career talk in my old university, how prominently should I tell students my salary?

What is the "determinant" of two vectors?

Why is it common in European airports not to display the gate for flights until around 45-90 minutes before departure, unlike other places?

Difference between `nmap local-IP-address` and `nmap localhost`

The (Easy) Road to Code

Do Cubics always have one real root?

Gomel chasadim tovim - are there bad chasadim?

What sort of fish is this

cannot log in to the server after changing SSH port

What is Tony Stark injecting into himself in Iron Man 3?

How should I solve this integral with changing parameters?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

How to educate team mate to take screenshots for bugs with out unwanted stuff

Does an unused member variable take up memory?

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

Create chunks from an array

How do you make a gun that shoots melee weapons and/or swords?

I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?

Leveling the sagging side of the home

One circle's diameter is different from others within a series of circles

Do Paladin Auras of Differing Oaths Stack?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

School performs periodic password audits. Is my password compromised?

Is this Paypal Github SDK reference really a dangerous site?



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?










-3















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



















  • 4





    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.

    – ThunderCat
    Mar 6 at 23:56












  • "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
    2 days ago















-3















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



















  • 4





    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.

    – ThunderCat
    Mar 6 at 23:56












  • "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
    2 days ago













-3












-3








-3








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.4k106698




39.4k106698










asked Mar 6 at 23:38









Stefan RadonjicStefan Radonjic

10614




10614







  • 4





    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.

    – ThunderCat
    Mar 6 at 23:56












  • "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
    2 days ago












  • 4





    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.

    – ThunderCat
    Mar 6 at 23:56












  • "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
    2 days ago







4




4





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.

– ThunderCat
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.

– ThunderCat
Mar 6 at 23:56














"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
2 days ago





"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
2 days ago












1 Answer
1






active

oldest

votes


















4














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









    4














    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





























      4














      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



























        4












        4








        4







        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.4k106698




        39.4k106698










        answered Mar 6 at 23:58









        waymobettawaymobetta

        559414




        559414





























            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

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme