git

Is there a TFS Git API for getting file last modified date of files in a folder?

会有一股神秘感。 提交于 2021-02-19 08:29:57
问题 I am using TFS Git API to programmatically read data from my Git repository. I have the requirement that I need to be able to get a folder from the git repository and list all of the files in it and their last modified timestamp. I am using the items api and I am able to get the items in a folder with this request: https://docs.microsoft.com/en-us/rest/api/azure/devops/git/items/list?view=azure-devops-rest-5.1 For example: GET https://dev.azure.com/fabrikam/_apis/git/repositories/278d5cd2

In ClearCase, need CLI invocation to list all revisions

纵然是瞬间 提交于 2021-02-19 08:19:26
问题 I'm attempting to add support for reading ClearCase repositories to reposurgeon. I've been able to puzzle out most of what I think I need, but the documentation is a massive pile of confusing details that leaves one basic question obscure. How do I list all revisions in a CC repository? The minimum thing I need would be a time-ordered sequence of lines each containing a revision ID (path, branch, revision level) and its parent revision ID. Revisions for directories should be included because

git: Show default / configured pager command

醉酒当歌 提交于 2021-02-19 07:59:05
问题 Git allows extensive configuration, with one of the values being core.pager . If this value is not set, Git performs some logic internally to automatically determine what the pager should be. core.pager Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the $GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually less). When the LESS environment

Cloning a package from github and use in spyder

三世轮回 提交于 2021-02-19 07:57:09
问题 I would like to create a copy of a package on github that I can edit and use in spyder. I currently use the anaconda package manager for my python packages. Here are the steps that I have taken so far: fork repo clone repo onto my local directory The package is called 'Nilearn'. I currently use anaconda and have installed nilearn via 'conda install nilearn'. I would like to be able to use my own copy of nilearn inside spyder alongside nilearn. I have tried renamine the repo to nilearn_copy,

Set git to always prompt for credentials

风流意气都作罢 提交于 2021-02-19 07:48:04
问题 Due to some specialized hardware, we have one machine that is shared with a few developers. I would like git commits and pushes to always prompt for credentials. I've tried a couple fixes found on SO including git config --global --unset credential.helper as well as editing the config to include askpass = under [core] . After doing both of these, I still get this when I try to commit: PS C:\Projects\Windows\projectname> git commit -m "testing shared credentials" *** Please tell me who you are

Cannot pull/push my git repository anymore. “Merge conflicts”

对着背影说爱祢 提交于 2021-02-19 07:47:07
问题 I have made changes to my project repository in several files. Then i commited and didn't pushed em. Later i've found a bug in code and opened git log to revert the last commit. Since i did it this commit has disappeared from log, and i cannot both push or pull repository due to an error. I've tried making a new commit but this only changed the error message on pull/push: An error was raised by libgit2. Category = 21 (MergeConflict). 5 uncommitted changes would be overwritten by merge git

git-tfs can I clone all branches but skip the history?

♀尐吖头ヾ 提交于 2021-02-19 07:33:11
问题 I want to migrate a project from TFVC to Git. I want to keep the different branches but I dont need each history. Can it be done? I tried git tfs quick-clone -branches=all but I only fetches one branch 回答1: If you want to work with tfs branches, you should clone one of the root branches. After you perform git push, all branches will be pushed to Git team projects. Generally, the following steps would achieve your goal: git-tfs clone http://tfsserver:8080/tfs/CollectionName/ $/teamproject

git-tfs can I clone all branches but skip the history?

我们两清 提交于 2021-02-19 07:33:08
问题 I want to migrate a project from TFVC to Git. I want to keep the different branches but I dont need each history. Can it be done? I tried git tfs quick-clone -branches=all but I only fetches one branch 回答1: If you want to work with tfs branches, you should clone one of the root branches. After you perform git push, all branches will be pushed to Git team projects. Generally, the following steps would achieve your goal: git-tfs clone http://tfsserver:8080/tfs/CollectionName/ $/teamproject

Github won't forget deleted items

天大地大妈咪最大 提交于 2021-02-19 07:33:05
问题 I am having a very simple problem with git that I just can't figure out. I originally tried to add a folder containing some scripts using: git init git add folder git commit git push origin master However I didn't realize I left something in that folder which is way too large to push to github, so of course it failed. So I deleted that item out of the folder and tried again. But to my amazement, I got the SAME error, with git thinking I still had that large item. So I went in, and the item

recover previous version of project using git COLA

你。 提交于 2021-02-19 07:08:08
问题 how to get the previous version of project once it is committed using GIT COLA GUI. I have a C++ file in the project. i created that file on 13th feb. i made changes to that file on 14th feb and saved it. now i want to get back to version dat was saved on 13th feb. so how to do this using GIT COLA. this project is in GIT repository. 回答1: Use the "View > DAG..." window to display all of the commits in the entire project. This window is referred to as the "DAG" window. You can also launch the