Git

157

Solutions

241

Contributors

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

Trying to create a build and test sequence on Microsoft VSTS.  Uploaded the Git repository from my local computer.  Build and tests run fine there.

Error I get from the build of the tests project (part 2 of the solution) is that it can't find the dll created in step 1 of the build, a .Net Standard 2.0 library.  It is obvious that the first step succeeds, but the second step (the tests) fails because the reference to the Step 1 library is not referenced correctly in the VSTS build step.

I have search Microsoft and the web for an example that will work, but nothing points to a solution to this.  I am sure it is obvious but I just don't see it.
0
Introducing Cloud Class® training courses
LVL 12
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Hi Experts

Could you point what is necessary to allow external users to merge a Bitbucket repository?

The configuration I have uses Acess Level not private,  accordingly to:

img001
So I guess the people that wants to clone it simply must to run like this:
img002
Is that or anything else is necessary?

Thanks in advance
0
I am using Visual Studio Community 2017 version 15.7.1

I have a solution that is part of a git repository.  What I make changes to a file; there is a red check mark and when I save; the blue lock goes back on the file.  I would like to push this project as a change up to my git repository stored on visual studio.com.  However none of the changes on this solution are recognized.

What do I need to do to reset so the changes are recognized and I can add this project to the Visual Studio Team Services site?
0
To develop php projects I use Netbeans IDE. Ihave the version 8.2 in the WIndows partition and the version 8.1 in the Linux partition (this is the version provided by the official Software Manager).
From Windows I have setup a git repository hosted in BitBucket: first I have created the repo in BitBucket, then I have initialized a Git repo in Netbeans and I have committed and pushed the whole project.
Then, in Linux, I have cloned the repo in Netbeans providing the url of the repo. Everything went fine: I performed commit and push from Windows, then from Linux, then from WIndows again.
The last time I tried to commit from Linux I've got an error about a corrupted object. Some investigation made me realize that the object was an avi file that for reasons I ignore had been copied in the repo (I had moved some video from another external hard drive to the one where even my project is stored: all files have been copied in the right directory but one of them, and only one, has been copied even in the repo!!).
As explained here, I tried to delete the file and finally I did it, unless it was just a ghost-file or someone put some drug in my drink :)

Once deleted the corrupted object I thought everything was fine, but Git still give me an error about another corrupted object, and this time is not a …
0
Hi everybody.
For some reason I ignore, a avi file has been copied or inserted in my local git repository and renamed as it be  an object. In Nautilus its icon shows the movie preview and if I double-click on it, I can watch the movie.
Now I can't commit my files so, once I have understood what happened, I have tried to delete it opening Nautilus as root or using sudo rm -i and the object name as it appears in Nautilus and in git error, but I get an error telling the file or the directory doesn't exist.

I can't just clone the repositories from BitBucket because it is not updated: I got this error some days ago but I had to go on with the work, so now I have a lot of changes not committed nor pushed.

I would like just to delete the movie from the repo but I don't know how to do it.

Someone can tell me what I have to do? btw, I'm new to Git and generally speaking not so confident with version control commands )

Thank you so much for any help.
0
Hi experts,
I have a c# solution which i've always just saved onto my local harddrive. I'd like to get this into VSTS so I can 1) use git for version control and 2) use the vsts scrum board to track the project. How do I get this out of my harddrive and into VSTS? I'm using visual studio 2017
0
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.
0
When to use Git Merge and When to use Git Rebase ?

Practical Use cases or examples when Git Merge will be useful and Git rebase will be useful.
0
After Updating my EDMX Diagram by deleting a table and re-adding it back (I had to remove a field from the table), I synced my code.
Now my co-worker after syncing her code, is unable to view her EDMX diagram (it is blank) and she is getting errors.  We are connected to the same
development database.  How can we fix her EDMX?

I believe we need to delete the .edmx and then add new entity framework?
0
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.
0
Cloud Class® Course: Amazon Web Services - Basic
LVL 12
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Every time I do a remote fetch from origin master down to my local master and then merge into my local branch, my preferences file gets overwritten. In my .getignore file the .settings/ folder is excluded:

# GitIgnore for Salesforce Projects
#ignore debug folder
debug/
# Project Settings and MetaData
.project
.settings/
.metadata
build.properties
config

# Apex Log as optional
apex-scripts/log

# Eclipse specific 
salesforce.schema
Referenced Packages
bin/
tmp/
config/
*.tmp
*.bak 
local.properties
.settings
.loadpath
.classpath
*.cache

# Illuminated Cloud (IntelliJ IDEA)
IlluminatedCloud
out
.idea
*.iml

# Mavensmate
*.sublime-project
*.sublime-settings
*.sublime-workspace
mm.log

# Haoide SublimeText
.config
.deploy
.history

# OSX-specific exclusions
.[dD][sS]_[sS]tore

# The Welkin Suite specific
**/.localHistory

*.sfuo

TestCache.xml

TestsResultsCache.xml

Open in new window


In my remote feature branch and remote master branch, the .gitignore file is identical and has the .settings/ folder excluded. I cannot figure out why my settings file keeps getting overwritten every time I do a remote fetch and then merge into my local branch.

How can I prevent my preferences file from getting overwritten every time I do a remote fetch from master?

Thanks.
0
Last week, Github was hit with the largest DDOS ever recorded:
https://githubengineering.com/ddos-incident-report/

Akamai Prolexic is who they use for DDOS mitigation and they apparently handled it in stride:
https://blogs.akamai.com/2018/03/memcached-fueled-13-tbps-attacks.html
0
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
https://therub.org/2013/07/19/clearcase-to-git/ and
https://github.com/charleso/git-cc.
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.
0
Hello Experts

I've tried everything possible to commit but my every attempt to commit / push changes to a new GIT repository fails.

As you can see from my VS2017 screen the 'OutGoing Commits' is greyed out.

I'm not sure of any other information I provide to help someone help me with this - it simply won't commit / push.

Any thoughts will greatly appreciated.

Example Project
0
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
0
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:

https://docs.microsoft.com/en-us/vsts/git/share-your-code-in-git-vs-2017

I'm trying to 'Add to Source Control' from my VS2017 as shown in the following image:
git
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?

Thanks

Carlton
0
In Visual Studio, how would I add my solution explorer project to gir so I can push this to VSTS?
Every time I select 'Add to Source Control' then select Git, I get the following message

"the current solution has projects that are located outside the solution folder. there projects will not be source controlled in the git repository. to add all the projects to a single Git repository please consolidate all projects under a single folder."

How would I resolve this?
0
I am new to using bitbucket and have a question.  

#1  If there is a line in the code that I have to change to run on my machine is there a way to keep it when I do a sync?

#2  Sometimes I make changes and play with my version and when a new version comes out.  It won't let me sync because I have uncommitted changes.  How can I get it to just over write what I have?
0
Hi Experts

Could you explain what is the purpose of "Docker" use and recommend some good references on it?

Is it in some manner near "git" ?

From a day to another I had to start using this software.

There's a "pletora" of materials on internet but some of them could be more adequated.

Thanks in advance.
0
Free Tool: ZipGrep
LVL 12
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

I was browsing repositories and accidentally opened a repository in github desktop 1.0.12. Now I see no means of closing it. What's the mojo?
ScrnGrab3506-180111-13.42.jpg
ScrnGrab3508-180111-13.44.jpg
0
Hi There,

I had connected to Ubuntu machine in windows through putty's ssh client assume the IP address is

55.170.23.156

I want to clone bit bucket inside this putty

assume the bit bucket url

is http://bitbucket.librariesdsw.net:8080/

assume bit bucket user name is bharath and password is welcome

how to clone this bitbucket inside this putty

please help,  thanks in advance

Kind regards,

Bharath K
0
Hi All,

I'm using visual studio code and using the integrated terminal.
When I create a directory and then type "git init", my new directory gets initialized.
But when I type "ls" to list the contents, I get the following error
" 'ls' is not recognized as an internal or external command, operable program or batch file. "

Am I missing something?  Thanks!
0
how to import simple git project to eclipse. any end to end examples on this. i know regular, maven projects import though.
 please advise
0
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 ?
0
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
0

Git

157

Solutions

241

Contributors

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.