Hi, you can use Microsoft.TeamFoundationServer.Client, it provides access to version control, work item tracking, build, and more via public REST APIs. There are many samples on GitHub, check out the Git samples page.
The date modified for the artifact is set to the date it is downloaded. As far as I know, we cannot change the date modified. Maybe you could get the last commit date with git log -1 --format=%cd
command, then write it to a txt file and publish to artifact and download and read it in release pipeline. See the documentation for git-log for a full description of the options.
Git stores your name and email address in its config file. This file can be at the system level, global to your account on your computer, or local to a repository. If a name and email aren't found in any of these places, Git will do its best to get this information from your operating system.
When you set up Git for the first time on a new machine, you may create a commit using Git's "best effort" information. Git will prompt you to set an explicit name and email address, and the new settings will be used for subsequent commits. This is a frequent source of one author having multiple names.
In addition, check the credentials in the Windows Credential Manager, clear the credentials and commit it again.
Visit this How names work in Git to detailed info.
Hi, you could use git log command to get commit History.
git log -1 --pretty="format:%ci" -- path
Check this similar issue on Stack Overflow.
You could use the branch command to create the branch and checkout to swap to that branch. Then add you local code and then merge into the corresponding branch.
Check this document for detailed information.
Hi, you can use git sparse checkout to checkout specify folder of your repository.
git clone -n {git repo url}
git config core.sparsecheckout true
​
echo {sub-folder}/* >> .git/info/sparse-checkout
git checkout {branch-name}
Refer to this blog for detailed information.
Hi, is there any error when you add the generic ci/cd driver? Share the debug log to investigate this further. Check this document about Integrating Burp Suite Enterprise Edition with other CI/CD platforms. In addition, try to set up a self-hosted agent check it again.
A commonly used branching workflow in Git is to create a new code branch for each new feature, bug fix, or enhancement. These are called Feature Branches. Each branch compartmentalizes the commits related to a particular feature. Once the new feature is complete – i.e. a set of changes has been committed on the feature branch – it is ready to be merged back into the master branch.
To create a new branch, we can use the command
git branch new-branch
This will create a new branch mirroring the commits on the currently active branch.
To start working on the new branch we first need to run the command
git checkout new-branch
This will change the active branch to the new branch.
At this point, commits can be made on the new branch to implement the new feature. Once the feature is complete, the branch can be merged back into the main code branch (usually master).
First we run git checkout master to change the active branch back to master. Then we run the command git merge new-branch to merge the new feature into the master branch.
$ git checkout master $ git branch new-branch $ git checkout new-branch
# ...develop some code...
$ git add –A $ git commit –m "Some commit message" $ git checkout master $ git merge new-branch
Check the official doc for more information.
As far as I know, there is no default setting to create a new git repo.
You typically obtain a Git repository in one of two ways:
See the detailed info here: https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository.
What OS are you working on?
Windows?
If yes, you should make sure you have the latest version of Git from https://git-scm.com/ and choose the Git Credential Manager during the install.
SSH is a fine alternative as well on Windows or on macOS/Linux.
​
--Brian
Maybe you could try Zappier integration, it is pre-installed with Azure DevOps. Once you have your Zapier account, just create a zap to send messages between Azure DevOps and Jira. Hope it helps.
You could use Zapier Service hook (This extension is pre-installed) in Azure Devops -> Project Settings ->Service Hooks. But before creating a service hook, you need to create a subscription in Zapier.
You are asking the right questions and I like you.
Sep 30, 2021 8:38:18 AM WARNING hudson.security.csrf.CrumbFilter doFilter Found invalid crumb [64 char token]. If you are calling this URL with a script, please use the API Token instead. More information: https://jenkins.io/redirect/crumb-cannot-be-used-for-script Sep 30, 2021 8:38:18 AM WARNING hudson.security.csrf.CrumbFilter doFilter No valid crumb was included in request for /job/MyProject-%20Develop/build by LittlePrimate. Returning 403.
On the URL it says something I mistakingly disregarded at first since I misunderstood what it talks about:
"To disable this improvement you can set the system property hudson.security.csrf.DefaultCrumbIssuer.EXCLUDE_SESSION_ID to true. Alternatively, you can install the Strict Crumb Issuer Plugin which provides more options to customize the crumb validation. It allows excluding the web session ID from the validation criteria, and instead e.g. replacing it with time-based expiration for similar (or even better) protection from CSRF."
I will now try this, thank you very much.
You could use Postman tool to call the Azure DevOps REST API quickly and easily. Don't need to format the code, just copy the example request body to the body tab(click raw and select Json format). Hope it helps.
Try this Power Automate template, this creates an Azure DevOps work item when email arrives with a specified keyword such as 'Bug' in subject.
Check the Azure Boards documentation to learn more.