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.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi Experts,

Git branch

i have added changes in one called -->
i have commited the file locally but not pushed to branch.
i have deleted same from my local-but not commited after deleting the file-so file is available in repository.

Now i am looking for a delted file which is having local commit.
tortoise-git-show log
i am able to see my local file

1.can some one suggest how to get that file (deleted file which is having local commit)

2.if i want to get header version file ( i mean before local commit changes) how to get it.
Microsoft Azure 2017
LVL 19
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

hi am having this error after I added $workspace
Building in workspace /Users/user/.jenkins/workspace/Sample Maven Project
No credentials specified
 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.origin.url # timeout=10
Fetching upstream changes from
 > /usr/bin/git --version # timeout=10
 > /usr/bin/git fetch --tags --progress +refs/heads/*:refs/remotes/origin/*
 > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision ab15ed384c3906e401313c782385572bb4f516ae (refs/remotes/origin/master)
 > /usr/bin/git config core.sparsecheckout # timeout=10
 > /usr/bin/git checkout -f ab15ed384c3906e401313c782385572bb4f516ae
Commit message: "formating changes"
 > /usr/bin/git rev-list --no-walk ab15ed384c3906e401313c782385572bb4f516ae # timeout=10
[Sample Maven Project] $ /usr/local/Cellar/maven/3.6.1/libexec/bin/mvn -f "/Users/user/.jenkins/workspace/Sample Maven Project/spring5webapp/pom.xml" clean install
POM file /Users/user/.jenkins/workspace/Sample Maven Project/spring5webapp/pom.xml specified with the -f/--file command line argument does not exist
[INFO] Scanning for projects...
Some problems were

I faced a problem on git that the repository  will be removed without any notification
I am wondering why note that this repository has been create since 2 weeks

we are using below commands:
git add .
git commit
git push

your quick answer is highly appreciated.
This is using SuSE Enterprise Server 11 with SP4. Recently, there was an application installed that requires to use git. We type "zypper info git" or "zypper install git" and can't find this package. My application team guy told we to type the following command,

    git commit -a -m "initial commit"

And the result is "If 'git' is not a typo you can use command-not-found to lookup the package that contains it, like this:     cnf git".

Obviously, git package wasn't installed and not provided in our SuSE repository. Where can we get this git package from?

Thanks in advance.
I am switching over my web file system from a windows (non case sensitive) to a linux (yes case sensitive ) system.

Right now my files are sitting in Github as a repo.
I need to go into my files and rename them just changing the upper to lowercase.

When I do that, Github does not recognize it as a change.

So I put in config core.ignorecase false
Then I tried renaming the file.

Now Github has 2 files, my old and new all lowercase names as 2 separate files.

I can technically go and delete the old files, but then I will lose the back history connected with the files.

Is there a better way to be doing this?
I have a C# Webform application which freezes every time I open the application in VS2017. As soon as I edit any source such as web.config then it freezes within approx 1 minute and I get a Not Responding message. Each time I have to go to task manager to end the task.  It may be connected to Git as I played around with using Git for a while. I have now switched of git via tools/options/source control/ plug in section set back to None.    However I cannot be sure.  How can I determine what is causing Visual Studio to stop responding ?

I have successfully setup my bitbucket repo and pulled a local copy. however I am not sure how to find out how to view this local copy in the browser to make any dev changes. can anyone tell me how I find out my local URL?
i have a branch preprod and another branch kotak.
i merges kotak into preprod.
but i found a file not there in preprod.

but its there in kotak.
all other files seem to be getting merged.
but this files is not even present in preprod.

what could be the reason for that ?

also now that this is an issue. and i want all the changes
of kotak into preprod. is there something like hard merge or something which can resolve this issue ?

[user@ansible01 ansible]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
I have a scheduled task that runs a batch file.  The batch file has several lines where I do a "git pull" command from a specific Git repository.  The Windows server where this runs has already been configured with proxy settings so that when you run "git pull" or any "git" command, it will properly connect to the required repository and run the command.  I have figured out that this schedule task and batch file will run just fine when a user is logged on.  But if I log out of the server, the schedule task start, but the "git pull" command gets stuck.  It's almost like it's can't connect and then the rest of the batch file will not run.  What should I do to ensure the "git" commands run fine even when a user is not logged in?

Thanks in advance!
C++ 11 Fundamentals
LVL 19
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

I have following the instruction below to download the project and run the command under Visual Studio 2017. It prompts the error below when I run second command.

Add-Migration : Exception calling "AddFromFile" with "1" argument(s): "'basePath' cannot be an empty string ("") or start with the null character.

Any idea ? What the purpose of the command and how to fix it ?

1. git clone
2. Add-Migration "Initial"  
3. Update-Database


I have two seperate organisations in Azure devops.

What I am trying todo is work out the steps to copy a git repo from one repository to another.

The new one will be blank.

How can I do this?

Pasting the source URL does not work if I click on the import button.

Please note I also want to bring the history as well.



 I've never install,configure and test Gitlab runner on Cloud VM (redhat 7.5 ) for version control of my Python Script.

Anyone help guide me through.


Ps advice how to syn with my local-repo to the gitlab repo with error. Tks.

Keep loading non-stop
hi friends,

i have been trying to send email via localhost using phpmailer and base on research, i was ask to first install composer and set the environment variable. i downloaded and composer from  and set the environment variable. the problem is when i try to run (composer require phpmailer/phpmailer) again,

i am still getting this error

  Failed to clone via https, ssh protocols, aborting.

    Cloning into 'C:\xampp\htdocs\vendor\phpmailer\phpmailer'...
    fatal: unable to access '': Could not resolve host:

    Cloning into 'C:\xampp\htdocs\vendor\phpmailer\phpmailer'...
    ssh: Could not resolve hostname Name or service not known
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

i have install git but it still not working. please help! i am new to …
Looking for a GUI Github software that will download all repositories from a user, without having to do each repository separately.

I have done some searching and couldn't find this in any GUI software, only with CLI.

Thanks in advance for your help,
Future Developer
Any Zurb Foundation users on here? I am getting the below errors when opening Foundation.

Version info:

Git = v2.13.2

Node = v7.1.0

NPM = v3.10.10

Foundation-CLI = v2.2.5


1)      I open the console/CMD Prompt
2)      Try to run:
-      foundation –v (to check Foundation CLI version)
-      -or -
-      foundation new (to start a new project)
3)      Get the error

SyntaxError: Unexpected token function

    at Object.exports.runInThisContext(vm.js:78:16)

    at Module._compile (module.js:545:28)

    at Object.Module._extensions..js(module.js:582:10)

    at Module.load (module.js:490:32)

    at tryModuleLoad (module.js:449:12)

    at Function.Module._load(module.js:441:3)

    at Module.require (module.js:500:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous>(C:\Users\*****\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\terminal-kit\lib\termkit.js:53:26)

    at Module._compile (module.js:573:32)


In PATH = Git then NPM then Nodejs

‘foundation –v’  -or- ‘foundation new’ resultsin:


exports.getParentTerminalInfo = async functiongetParentTerminalInfo( callback ) {

Hello, I'm using GitLab (git), and I want to be able to create a single tag that captures all of the commits for that branch in the past week.
For example, let's say I have 5 different commits to the master branch. I want to create a consolidated tag of all of those commits.

How do I do this? I'm using command line language.

I am trying to push a project I am working on to GitHub, but when I do I am getting the error invalid username or password. I'm entering the correct password.

I have two step verification turned on and I added my public SSH key to my GitHub profile.

I'm running Ubuntu 17.10.
PMI ACP® Project Management
LVL 19
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

We have two concepts in GIT Rebase and Merge

Rebase Overrides the history of commits

Merge keep track of history of commit.

Merge would be cluttered if many people works and commits on the same feature branch.

Rebase would be time consuming when multiple people commits on the same branch eventhough we just changed a few lines in the same committed file.

When to use Rebase and when to use merge in real time is not clear?

Please advise.
I would like to Migrate/Port source code in Clearcase to Github without loosing version history.(Complete repository porting without loosing version history information)
After google, I followed and
and able to  fetch the history. However it takes only  the first version of the VOB from ClearCase to Git.

If anyone have already done this activity please suggest. It would be a big help!!!
If there is any paid tool to do this activity quickly, is also appreciated.

Thanks in Advance.
I'm using sourcetree and there is an unstaged file stuck.

The file has actually been removed a long time ago, I don't want it anymore, however, no matter what I do, I can't remove the line from unstaged files.

I've tried remove, ignore, stop tracking etc.. and I get the same error:

git -c diff.mnemonicprefix=false -c core.quotepath=false checkout -- lib/addins/imagemagick/pclip.png
error: pathspec 'lib/addins/imagemagick/pclip.png' did not match any file(s) known to git.
Completed with errors, see above.

Open in new window

I'm sure a git command will fix this, just not sure what to try
Hello Experts,

I'm trying to share my Visual Studio solution in a new VSTS or Team Foundation Server Git repo.

I have a VSTS account. I'm essentially trying to create a local Git repo for my project using the guide at the following link:

I'm trying to 'Add to Source Control' from my VS2017 as shown in the following image:
However, I'm not given that option in my VS2017. I also can't see the option when I select my solution in Solution Explorer

Can someone let me know how to select the option?


when running Jenkins build getting the above error.

Jenkins fetch data from bitbucket. in Jenkins scm section I gave bitbucket url and credentials .

how to fix this error ?
Hi Experts,

My team have a Github repository and I would like to fetch following data of all the pull requests merged by my developers :

1) Get list of all pull requests merged in repository
2) create date of every PR
3) date when PR is assigned to reviewer
4) merge date of every PR
5) name of developer who has created the PR

I would like to have final output to be either in xml or csv or excel format.

Thank you






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.

Top Experts In