Posts Tagged with git

Displaying 1-6 of 6 results.
Wiki: Laravel 5.2 install IDE helper for NetBeans (Namespaces, Classes and all libraries)wiki
posted by admin on August 12, 2016
Helper Source laravel-ide-helper GITHUB Official

CMD Terminal
Open CMD terminal
Go to your Laravel project root directory by

cd C:\xampp\htdocs\laravel.dev


Install
Require this package with composer using the following command:

composer require barryvdh/laravel-ide-helper

After updating composer, add the service provider to the providers array in config/app.php

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,


Automatic phpDoc generation for Laravel Facades
You can now re-generate the docs yourself (for future updates)

php artisan ide-helper:generate

Note: bootstrap/compiled.php has to be cleared first, so run

php artisan clear-compiled

before generating (and

php artisan optimize

after).

You can configure your composer.json to do this after each commit:
You can also publish the config file to change implementations (ie. interface to specific class) or set defaults for --helpers or --sublime.

php artisan vendor: publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config


Restart NetBeans IDERead more
Wiki: GIT Bash update master from branchwiki
posted by admin on January 20, 2017

git checkout master
git pull origin master
git merge test
git push origin master
Read more
Wiki: NetBeans XAMPP: Connect to git repository and delete existing file from GitHubwiki
posted by admin on October 7, 2016
altIf youtry to delete file from NetBeans, after that try to do commit and push project to update repository, you cant see any deleted files, which you deleted on NetaBenas.

Now I want to share to you my version, to resolving that problem Step By Step

1. Adopt your netbeans project with github repository
All instruction here, how to install and work with NetBeans and Git repository and how to do

  1. How to Initialize a Git Repository
  2. How to Open Window > Output > Output
  3. How to add files or directly commit them to the Git repository
  4. How to clone existing project from Git repository location by user name and password or how to push existing project from NetBeans location by user name and password to Git repository
  5. etc...


2. Download GIT Bash
Official website for downloading Git Bash

3. Open Git Bash command output window
Change your directory to your NetBeans project directory, to find .git files

$ cd c:

a.ovasafyan@IT04 MINGW64 /c
$ cd xampp/htdocs/

a.ovasafyan@IT04 MINGW64 /c/xampp/htdocs
$ cd bukivedi.store

a.ovasafyan@IT04 MINGW64 /c/xampp/htdocs/bukivedi.store (master)


If all is right, you must see the word (master)

Check status

$ git status

If all is done, you can see this message

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean


3. Starting delete process
Deleting file from local repository by rm

$ git rm "index-test.php"

right result:

$ git rm "index-test.php"
rm 'index-test.php'


Checking status after our deleting operation

$ git status

Right result:

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

deleted: index-test.php

check file on your NetBeans Project... File will be deleted successfully, and you can't see that file!
Saving our changes by commit

$ git commit -m "We are testing delete event of Git"

Right Result:

$ git commit -m "We are testing delete event of Git"
[master 3cf6321] We are testing delete event of Git
1 file changed, 15 deletions(-)
delete mode 100644 index-test.php

Push our changes to our Git Repository

$ git push

Right Result:

$ git push
Counting objects: 2, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 252 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local objects.
To https://github.com/arthurhovasap/bukivedinstore.git
aac9734..3cf6321 master -> master


Check you repository and enjoy!Read more
Wiki: Google Maps API Maps JavaScript API Place Autocompletewiki
posted by admin on October 12, 2016

<!DOCTYPE html>
<html>
<head>
<title>Place Autocomplete</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#map {
height: 100%;
}
.controls {
margin-top: 10px;
border: 1px solid transparent;
border-radius: 2px 0 0 2px;
box-sizing: border-box;
-moz-box-sizing: border-box;
height: 32px;
outline: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#pac-input {
background-color: #fff;
font-family: Roboto;
font-size: 15px;
font-weight: 300;
margin-left: 12px;
padding: 0 11px 0 13px;
text-overflow: ellipsis;
width: 300px;
}

#pac-input:focus {
border-color: #4d90fe;
}

.pac-container {
font-family: Roboto;
}

#type-selector {
color: #fff;
background-color: #4d90fe;
padding: 5px 11px 0px 11px;
}

#type-selector label {
font-family: Roboto;
font-size: 13px;
font-weight: 300;
}

</style>
</head>
<body>
<input id="pac-input" class="controls" type="text"
placeholder="Enter a location">
<div id="type-selector" class="controls">
<input type="radio" name="type" id="changetype-all" checked="checked">
<label for="changetype-all">All</label>

<input type="radio" name="type" id="changetype-establishment">
<label for="changetype-establishment">Establishments</label>

<input type="radio" name="type" id="changetype-address">
<label for="changetype-address">Addresses</label>

<input type="radio" name="type" id="changetype-geocode">
<label for="changetype-geocode">Geocodes</label>
</div>
<div id="map"></div>

<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -33.8688, lng: 151.2195},
zoom: 13
});
var input = /** @type {!HTMLInputElement} */(
document.getElementById('pac-input'));

var types = document.getElementById('type-selector');
map.controls[google.maps.ControlPosition.TOP_LEFT].push(input);
map.controls[google.maps.ControlPosition.TOP_LEFT].push(types);

var autocomplete = new google.maps.places.Autocomplete(input);
autocomplete.bindTo('bounds', map);

var infowindow = new google.maps.InfoWindow();
var marker = new google.maps.Marker({
map: map,
anchorPoint: new google.maps.Point(0, -29)
});

autocomplete.addListener('place_changed', function() {
infowindow.close();
marker.setVisible(false);
var place = autocomplete.getPlace();
if (!place.geometry) {
window.alert("Autocomplete's returned place contains no geometry");
return;
}

// If the place has a geometry, then present it on a map.
if (place.geometry.viewport) {
map.fitBounds(place.geometry.viewport);
} else {
map.setCenter(place.geometry.location);
map.setZoom(17); // Why 17? Because it looks good.
}
marker.setIcon(/** @type {google.maps.Icon} */({
url: place.icon,
size: new google.maps.Size(71, 71),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(17, 34),
scaledSize: new google.maps.Size(35, 35)
}));
marker.setPosition(place.geometry.location);
marker.setVisible(true);

var address = '';
if (place.address_components) {
address = [
(place.address_components[0] && place.address_components[0].short_name || ''),
(place.address_components[1] && place.address_components[1].short_name || ''),
(place.address_components[2] && place.address_components[2].short_name || '')
].join(' ');
}

infowindow.setContent('<div><strong>' + place.name + '</strong>
' + address);
infowindow.open(map, marker);
});

// Sets a listener on a radio button to change the filter type on Places
// Autocomplete.
function setupClickListener(id, types) {
var radioButton = document.getElementById(id);
radioButton.addEventListener('click', function() {
autocomplete.setTypes(types);
});
}

setupClickListener('changetype-all', []);
setupClickListener('changetype-address', ['address']);
setupClickListener('changetype-establishment', ['establishment']);
setupClickListener('changetype-geocode', ['geocode']);
}

</script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&signed_in=true&libraries=places&callback=initMap"
async defer></script>
</body>
</html>
Read more
Resolved: How to create gitignore and htaccess files on xampp
posted by admin on October 6, 2016
I want to create gitignore and htaccess files on xampp, without errors. I have got errors on file type places.Read more
Resolved: NetBeans update last commit message
posted by admin on August 12, 2016
How to update last commit, not pushed commit message content?Read more