Git

207

Solutions

293

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

Hello,

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.
Best,
0
Exploring SQL Server 2016: Fundamentals
LVL 13
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Hello everyone.  It has been some time since I worked with Java on my laptop. I went to  FullStack Developer bootcamp but took a non-IT position after completion.  I want to get back into the IT arena.  Unfortunately, I need a little refresher working around in the editors/tools and running my projects. We used GitHub, Bash and Sublime.

Do you know of any consultants I can work with to get me goin again? I am in the Cleveland Ohio area.

Thanks,
Ed
0
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.
0
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?
0
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 ?

regards
Pat
0
Hi,
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?
0
hi
i have a branch preprod and another branch kotak.
i merges kotak into preprod.
but i found a file nsdl.java 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 ?

thanks
0
[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
0
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!
-Christian
0
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 https://github.com/etrupja/DrinkAndGo
2. Add-Migration "Initial"  
3. Update-Database

Thx
0
Become a CompTIA Certified Healthcare IT Tech
LVL 13
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Hi,

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.

Thanks

Ward
0
Hi,

 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.

Thanks
0
Hi,

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

giblab_error1.jpg
Keep loading non-stop
giblab_error2.jpg
0
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 https://laravel.com/docs/5.4  and set the environment variable. the problem is when i try to run (composer require phpmailer/phpmailer) again,

i am still getting this error

[RuntimeException]
  Failed to clone https://github.com/PHPMailer/PHPMailer.git via https, ssh protocols, aborting.

  - https://github.com/PHPMailer/PHPMailer.git
    Cloning into 'C:\xampp\htdocs\vendor\phpmailer\phpmailer'...
    fatal: unable to access 'https://github.com/PHPMailer/PHPMailer.git/': Could not resolve host: github.com

  - git@github.com:PHPMailer/PHPMailer.git
    Cloning into 'C:\xampp\htdocs\vendor\phpmailer\phpmailer'...
    ssh: Could not resolve hostname github.com: 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 …
0
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
0
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:

C:\Users\*****\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\terminal-kit\lib\detectTerminal.js:179

exports.getParentTerminalInfo = async functiongetParentTerminalInfo( callback ) {

                                                                     ^^^^^^^^
0
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.

Thanks
Jeff
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
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
Starting with Angular 5
LVL 13
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

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
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
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
When Pull Requests are merged in Bitbucket stash, post commit hook of stash is triggering the jenkins jobs. We have multiple jobs for each service and have configured "Polling igores commits in certain paths" with "Included Regions" and "Excluded Regions".

When a merge commit is made to Project A, both Project A and Project B jobs are getting triggered in Jenkins.
But expected should be only to trigger Project A Job.

Project A Job is having below settings:
Included Regions: A/.*
Exclude Regions: B/.*

Project B Job is having below settings:
Included Regions: B/.*
Exclude Regions: A/.*

And with Poll SCM enabled and without any Schedule.

On further analysis, we found there is an unresolved bug in Jenkins Git plugin not supporting merge commits -
https://issues.jenkins-ci.org/browse/JENKINS-32386
https://issues.jenkins-ci.org/browse/JENKINS-20389

We had Git plugin version 3.5.1 installed originally and tried with latest version 3.6.4 as well but no luck.
In JENKINS-20389 ticket, there is a first comment where an user has mentioned "I'm having the exact same issue in the 2.0 git plugin. I have to downgrade to 1.4.0 because of this bug."

So we tried to install this 1.4.0 plugin as well but this has some features missing like Credentials options, Git Parameter options.. So Jenkins was not able to connect to our GIT respository. So unfortunately we couldn't check with this plugin version.

Now, we are stuck with this issue and need help to tackle …
0

Git

207

Solutions

293

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.

Top Experts In
Git
<
Monthly
>