Link to home
Create AccountLog in
Git

Git

--

Questions

--

Followers

Top Experts

Avatar of Bruce Gust
Bruce Gust🇺🇸

There is no tracking information for the current branch?
I created a new branch, did some work then pushed it up to the remote repository.

I did some work directly on the branch on Github and then wanted to pull those changes down to my local box. So, I did this:

$ git pull
remote: Enumerating objects: 36, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 36 (delta 17), reused 12 (delta 7), pack-reused 0
Unpacking objects: 100% (36/36), done.
From https://github.com/applied-health-analytics/bsmart
   ff42226..63ba0cd  code-cleanup           -> origin/code-cleanup
   a9ed3c3..71641ee  final-activity-stream  -> origin/final-activity-stream
 * [new branch]      fix-postal-code-market -> origin/fix-postal-code-market
 * [new branch]      fix-proposal-dates     -> origin/fix-proposal-dates
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> final-activity-stream


That threw me.

Why would it be saying that there's not tracking information?

Bottom line: I want the changes that have been to this branch on the remote repository to be brought down to my local box.

How do I do that?

I would've thought a basic "git pull" would do the track, but I'm hesitating now in light of what you see above.

What do you think?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Chris StanyonChris Stanyon🇬🇧

Sounds like you're trying to pull a remote branch down with out a local branch to pull it into. Specify thant you want to pull down a remote branch (default name of remote is origin)

git pull origin remoteBranchName

Avatar of Bruce GustBruce Gust🇺🇸

ASKER

I'll do it, but just so I understand what I'm doing wrong.

The reason I'm getting this message is because the base branch is "code-cleanup." When I do a "pull" and I haven't specified the fact that I want to track this particular branch, that's why I get this message?

SOLUTION
Avatar of Chris StanyonChris Stanyon🇬🇧

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

ASKER CERTIFIED SOLUTION
Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Bruce GustBruce Gust🇺🇸

ASKER

Got it!

Thank you!
Git

Git

--

Questions

--

Followers

Top Experts

Git is a version control system for software development. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. Git was initially designed and developed for Linux kernel development. As with most other distributed version control systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.