Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic fetch at start up and periodically #2207

Open
MGS-SEBASTIEN opened this issue Jan 31, 2019 · 4 comments
Open

Automatic fetch at start up and periodically #2207

MGS-SEBASTIEN opened this issue Jan 31, 2019 · 4 comments

Comments

@MGS-SEBASTIEN
Copy link

@MGS-SEBASTIEN MGS-SEBASTIEN commented Jan 31, 2019

Hi,

I don't know if something like that has already been asked but I didn't find anything on it.

As all knows, Git Hub is useful as collaborative work, but... by trying GitHub extension in visual studio I found some new features that could be really nice to increase collaborative working experience.

Is it possible to put three options in GitHub extension options ?

  1. Automatic fetch when we open a project or website or folder in VS (a checkbox option)
  2. Automatic fetch when we switch branch (a checkbox option).
  3. Autmatic fetch on the actual branch every X minutes (a textbox option)

I think you understood what I mean, colleagues could now know when something has been modified on the branch they are working.

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Feb 11, 2019

@MGS-SEBASTIEN,

I agree something like this would be nice. Not having the latest commits locally is something that regularly trips me up.

There is an extension by @madskristensen that tackles your first suggestion (it's currently VS 2019 only).

I started working on a PR to add VS 2017 support and make it update all branches (not just the current one).
madskristensen/GitPull#3

If you're interested in trying this version, you can find the .vsix here:
https://ci.appveyor.com/project/madskristensen/gitpull/builds/21339372/artifacts

I'm a little hesitant to do thing anything automatically that make changes in the users working directory. I wonder is simply having a notification when there are remote chances would make more sense? The user could then click on the notification, see the incoming changes and update their repository. That way they'd always be aware of the latest commits.

@Defee
Copy link

@Defee Defee commented Sep 9, 2019

Hi!
@jcansdale the problem is that git pull extension by @meaghanlewis performs pull which is not the case the person is asking.

As you know pull do the following:

  1. fetches
  2. merges
    So I would've preferred to have extensions doing the fetch instead of the pull.

Fetch is usually used in the git workflows and it makes really big problem for some people to go and fetch repo, which leads in their confusion not seeing the changes from remote.

Notification make sense, but I would've preferred a checkbox enabling me to do auto-fetches. I'm using the same feature in vscode (link) and it is awesome cos it reduces a lot of hassle.

@devel112
Copy link

@devel112 devel112 commented Sep 8, 2020

Just to be clear, pulling is entirely out of the questing. This is only about auto-fetching.

@mselley
Copy link

@mselley mselley commented Dec 11, 2020

would be good to see this, can trip over dev especially when they start out or are used to TFVC.
Two options, Auto Fetch or Auto Notify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.