1
\$\begingroup\$

I'm using github for unity asset and for some reason I can't find new branch that was created on a different PC. I tried refreshing, fetching, reinstalling asset, reinstalling asset and recloning repository.

Strangely, my laptop shows the branch, but not my personal home computer.

Any ideas why is this happening?

\$\endgroup\$
4
  • \$\begingroup\$ Have you pushed the branch to the remote repository after creating it ? I sometimes forgot to do this as well. :) \$\endgroup\$ Jan 6, 2019 at 13:48
  • \$\begingroup\$ It's pushed. You can see all files on github site \$\endgroup\$
    – Tadas
    Jan 6, 2019 at 14:14
  • \$\begingroup\$ I can access this branch on friends laptop and my own laptop. But i can't reach it on my PC \$\endgroup\$
    – Tadas
    Jan 6, 2019 at 14:16
  • \$\begingroup\$ Have you tried only with the Unity asset ? Can you try to fetch the repo with command line ? \$\endgroup\$ Jan 6, 2019 at 14:23

1 Answer 1

1
\$\begingroup\$

Open your project root folder in a command line and try this :

git branch -r

To view all available branches on remote.

git checkout --track origin/remote_branch_name

To checkout the branch and track it from the remote repository.

See this question for more details.

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Where can i paypal you? :D Love you! It works just fine now! \$\endgroup\$
    – Tadas
    Jan 6, 2019 at 14:36
  • 1
    \$\begingroup\$ Fine for this time, next time it will cost much more haha. Welcome to StackExchange community ! Have a great time here and good luck with your projects :) \$\endgroup\$ Jan 6, 2019 at 14:44
  • 1
    \$\begingroup\$ @Tadas Folks here are rewarded with Internet points: along with accepting the answer, like you already have, you can also upvote it :) \$\endgroup\$
    – Vaillancourt
    Jan 6, 2019 at 15:46
  • \$\begingroup\$ Cheers! I'm not new on stack tho. I know how system works. :P Can't upvote yet, because I don't have enough points for it. Will get back when i'll have enough. Thanks once again, you saved me so much time for our project ;) \$\endgroup\$
    – Tadas
    Jan 6, 2019 at 15:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .