In Git how can you check which repo in Github you are pushing to from the command line?

V.Villacis

I have several projects I am working on. I am constantly pulling and pushing. Recently I made some changes to one of my files, added and committed and decided to push my project A, however it pushed into my Github Project B. I then did git pull for kicks and it this happened.

  • branch master -> FETCH_HEAD Already up-to-date.

It did not pull none of my files from Project B. I then did git status and it showed every single file/folders in my directory as needing to be committed. How would I know which "init" I am on? How can I switch out of this state and how can I disregard these blind commits without losing my files?

TLJ

I think you need to reconfig git remote

type git remote -v and see if there's a mismatch or not.
If there is, follow this instruction from github: https://help.github.com/articles/changing-a-remote-s-url/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can you determine image size from a command line?

From Dev

In Virtual Box, how do you know which NIC is which from the linux command line?

From Dev

Should you ignore .obj files when pushing to git repo?

From Java

How can I download a single raw file from a private github repo using the command line?

From Dev

How can I download a single raw file from a private github repo using the command line?

From Dev

Can you see who is watching a repo on GitHub?

From Dev

Is there a way to detect which workspace you are currently in from the command line?

From Dev

How do you configure Github Desktop to run from the command line in OSX?

From Dev

How to see the repositores you have created in Github via command line?

From Dev

In Git, can you retrieve the date when you pulled a certain commit from the repo?

From Java

Can you deploy to a device via Gradle from the command line

From Dev

Can you run a specific Xcuitest from the command line?

From Dev

Can you call Slow Cheetah from the command line?

From Dev

Can you call Slow Cheetah from the command line?

From Dev

Can you use system restore entirely from the command line?

From Dev

How can you print a text file via gedit from the command line?

From Dev

How can you write to a file from the command line without using shell output redirection?

From Dev

How can you persist user data for command line tools?

From Dev

How can you trim files using the command line?

From Dev

How do you select the fastest mirror from the command line?

From Dev

How do you stop a rails server from the command line?

From Dev

How do you open SourceTree from the command line?

From Dev

How do you run tests from the command line?

From Dev

How do you select the fastest mirror from the command line?

From Dev

How would you split strings from command line arguments? - Java

From Dev

How do you create an empty file from the command line in Windows

From Dev

How do you set up gsutil to be run from the command line

From Dev

How do you reset a USB device from the command line?

From Dev

Git can't checkout a repo from github

Related Related

  1. 1

    How can you determine image size from a command line?

  2. 2

    In Virtual Box, how do you know which NIC is which from the linux command line?

  3. 3

    Should you ignore .obj files when pushing to git repo?

  4. 4

    How can I download a single raw file from a private github repo using the command line?

  5. 5

    How can I download a single raw file from a private github repo using the command line?

  6. 6

    Can you see who is watching a repo on GitHub?

  7. 7

    Is there a way to detect which workspace you are currently in from the command line?

  8. 8

    How do you configure Github Desktop to run from the command line in OSX?

  9. 9

    How to see the repositores you have created in Github via command line?

  10. 10

    In Git, can you retrieve the date when you pulled a certain commit from the repo?

  11. 11

    Can you deploy to a device via Gradle from the command line

  12. 12

    Can you run a specific Xcuitest from the command line?

  13. 13

    Can you call Slow Cheetah from the command line?

  14. 14

    Can you call Slow Cheetah from the command line?

  15. 15

    Can you use system restore entirely from the command line?

  16. 16

    How can you print a text file via gedit from the command line?

  17. 17

    How can you write to a file from the command line without using shell output redirection?

  18. 18

    How can you persist user data for command line tools?

  19. 19

    How can you trim files using the command line?

  20. 20

    How do you select the fastest mirror from the command line?

  21. 21

    How do you stop a rails server from the command line?

  22. 22

    How do you open SourceTree from the command line?

  23. 23

    How do you run tests from the command line?

  24. 24

    How do you select the fastest mirror from the command line?

  25. 25

    How would you split strings from command line arguments? - Java

  26. 26

    How do you create an empty file from the command line in Windows

  27. 27

    How do you set up gsutil to be run from the command line

  28. 28

    How do you reset a USB device from the command line?

  29. 29

    Git can't checkout a repo from github

HotTag

Archive